I have a PHP/MySQL site I’m thinking about converting into a HTML5/JavaScript that could be run off of a users computer locally. I would like the user to be able to download my site, extract it and use it without a network connection. A static mirror of this site would hundreds of megabytes while the actual data is under 10 megabytes. Is there a way to preload the HTML5 web storage ahead of time? Or would I have to use JavaScript to load the web storage if doesn’t have my data? Any ideas or pointers? Thanks
I have a PHP/MySQL site I’m thinking about converting into a HTML5/JavaScript that could
Share
I’m not quite sure what you mean by, “A static mirror of this site would hundreds of megabytes while the actual data is under 10 megabytes,” but I believe the only practical way to read/write from HTML5 storage is via JavaScript, so when they first run your app it would have to check to see if the data exists in storage, and if it’s not populate it from some source using JavaScript. There’s no way to “preload” it other than that AFAIK.