Save pictures on the client to load faster with bad connection

asked 2018-01-24 17:05:08 +0800

andij62 gravatar image andij62
303 1 7

updated 2018-01-25 15:58:07 +0800

Hi all,

i have a Web-App designed with zk ce 8.0.2 for IOS and Android. The app run in full-screen mode. On the Startscreen are 9 Buttons with Icons. if the internet connection is very slow, it takes a while until the icons are loaded because the icons are very high resolution.

Is it possible to store the Icons direct on the Device, so they do not always have to be loaded via the server? Maybe someone has an idea?

Best regards Andi

delete flag offensive retag edit

4 Answers

Sort by ยป oldest newest most voted

answered 2018-01-25 20:11:04 +0800

andij62 gravatar image andij62
303 1 7

Hi Robert,

my images are in tomcat under an image folder and are loaded with

button id="tournament" label="Tournament" sclass="button_menu" orient="vertical" image="img/tournament.png"


link publish delete flag offensive edit

answered 2018-01-25 20:00:40 +0800

andij62 gravatar image andij62
303 1 7

Thanks for your answer! My icons are very special so i can not use the Font awesome icons. The example in the blog use MVVM-Pattern, i use MVC-Pattern and the CE-Version. Is it possible to use the Offline Recovery Feature of Fragment Component anyway?

link publish delete flag offensive edit

answered 2018-01-25 17:33:16 +0800

chillworld gravatar image chillworld flag of Belgium
5337 4 9

The icons, are they in multicolor or can you use also Font awesome icons?
I prefer to use font awesome for that reason, but I know it's not always possible.
Otherwise, you can check this out :


link publish delete flag offensive edit

answered 2018-01-25 19:54:02 +0800

cor3000 gravatar image cor3000
4952 2 7
ZK Team

by default images/icons should be cacheable by the client browser so they only have to be downloaded once.

How do you apply the images to the button? Maybe you disabled caching in your application- or webserver. Are you using any non cacheable urls?


link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools




Asked: 2018-01-24 17:05:08 +0800

Seen: 13 times

Last updated: Jan 25 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More