0

Save pictures on the client to load faster with bad connection

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

andij62 gravatar image andij62
301 1 6

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
0

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

andij62 gravatar image andij62
301 1 6

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"

Andi

link publish delete flag offensive edit
0

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

andij62 gravatar image andij62
301 1 6

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
0

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

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

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 :

http://blog.zkoss.org/2017/07/06/zk-8-5-preview-the-offline-recovery-feature-of-fragment-component/

link publish delete flag offensive edit
0

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

cor3000 gravatar image cor3000
4406 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?

Robert

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

Follow
2 followers

RSS

Stats

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