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 the 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With