HTML 5 localstorage
I am looking for a way to store almost all JS & CSS in localstorage. I know how to do it with CSS (seems to work without a hitch). However, if you try to store JS that has any HTML call like that will stop the saving to the local storage. Ideally I would just like to create a list of source files for th开发者_如何学JAVAe browser to download.
To give you an idea I am trying to store the Jquery UI js and Jquery in local storage. This way they only need be loaded once.
Doing this will drastically improve the speed of my application. I have already built in version control so that I can overwrite any old data.
one more thing....just to make it fun...I need a callback once everything has been downloaded so I can forward the user. (any ideas on how to do this?)
thanks all for any help!!!
the browser should cache those resources, so storing them in localstorage isn't worth the headache.
精彩评论