Question

I have finished my first web app and I have it cache.manifest for off line mode. Problem is in my area I have not got 3G readily available and when I run my app it is dog slow. Is there a solution to tell your browser to run from cache when not connected to wifi ?

Thanks steve

Was it helpful?

Solution

You can't detect the internet detection method directly, but you could try testing the connection speed and acting on the result of that?

Here is another answer that may help you with that: How to detect internet speed in Javascript?

Having said that though, I was under the impression that the application cache file would be used in either situation and any files cached would be loaded anyway. The only time it would attempt to download them would be if the application cache file was updated prompting a refresh of all the cached files themselves...

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