Question

I'm creating an app with a number of videos/large images that will use appcache to handle the preloading of them.

Is there a way for me to control what order those assets get loaded? For example, I would like to load the big image/video on the homepage before the ones on the sub pages. I have tried listing the files in the order I want them to load in the appcache manifest but that didn't seem to make a difference.

Was it helpful?

Solution

It doesn't matter what order they're downloaded in. Appcache operations are atomic. Nothing is available from the appcache for a particular manifest file until everything is available from the appcache for that manifest.

If you want to break up the download then, as @PaulGrime suggests, have multiple manifest files. You will need to have the user visit the host page for each manifest but you should be able to manage that with a hidden iframe or something.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top