I'm building a mobile application with html5 and javascript. I have json data in js file. I will host that data file on my online server to update the data daily but I want my application to use the local file when there is no internet connection available too.
Thank you