Re:Basket.js: A simple script loader that caches scripts wit...
by maratd on Friday March 02, 2012 @12:15PM
(#3657364)
You're better off using a manifest file, which is part of the HTML5 spec. Not everything needs to be done in JavaScript =)
[ Parent
| on HN ]
Re:Basket.js: A simple script loader that caches scripts wit...
by pygy_ on Friday March 02, 2012 @02:19PM
(#3657916)
There's an extra HTTP request to fetch the manifest on every page load.
In the same vein, does the browser check if files specified in the manifest expired? If yes it would once again waste some time...
Re:Basket.js: A simple script loader that caches scripts wit...
by maxwell on Friday March 02, 2012 @01:51PM
(#3657788)
But it will be eventually be written in JavaScript.
Re:Basket.js: A simple script loader that caches scripts wit...
by SMrF on Friday March 02, 2012 @12:32PM
(#3657439)
Doesn't the using the application cache (e.g. the manifest file you speak of) cause a user prompt? That's a deal breaker in many situations.
Re:Basket.js: A simple script loader that caches scripts wit...
by karol on Friday March 02, 2012 @01:17PM
(#3657624)
I am using a manifest in my new app and never witnessed a user prompt. I am testing on Android 2.2 native browser, chrome and safari.
Re:Basket.js: A simple script loader that caches scripts wit...
by maratd on Friday March 02, 2012 @02:22PM
(#3657933)
It is my understanding that desktop browsers do present the prompt, but mobile browsers do not. This feature was mostly designed for mobile, since the browser cache in mobile tends to be constrained. I have a feeling as things move along, that prompt will go away entirely.