What is the best way to create a chrome web app and have about 300-400MB of images download initially on load to a local storage and then be able to retrieve those images at any time in my app.
I want my app to look at local storage first, and if images exist use those images and if they don't then download from an online repository. My app can have upwards of over 1000 images and I don't want to code individual XMLHTTPRequests for each image.
Specific examples that could help me would be great. I am a novice developer and have successfully created chrome apps before but now, this time, I need to care about the size of my app.
Thank you,
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discuss+unsubscribe@chromium.org.
Service workers are the best way to handle this. However, precaching that much data up front is not responsible. Cache as little as possible up front, then as images are requested check the cache first then pull from network and cache if they don't exist.
Remember, data costs and in some places a lot. Only send what users need in order to get what they asked for. Just in Google Fi this initial cache would cost a user about $4 or so in data. Is it worth that much value to people?
☆PhistucK
☆PhistucK
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.
--
--
Chromium Discussion mailing list: chromium...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-discuss
---
You received this message because you are subscribed to the Google Groups "Chromium-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-discu...@chromium.org.