Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 458
m_gunns Avatar asked May 13 '26 02:05

m_gunns


1 Answers

the browser should cache those resources, so storing them in localstorage isn't worth the headache.

like image 145
hvgotcodes Avatar answered May 14 '26 17:05

hvgotcodes



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!