문제

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

도움이 되었습니까?

해결책

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...

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top