performance - Cache Javascript libraries across websites -


i want share idea you.

there many websites use sort of javascript library / framework (think jquery, angular, bootstrap). using these libraries can slow down page load, why don't cache them , use them later on different sites?

a website should able tell browser libraries (+version) wants use. browser handles package management (keep them date , remove old unused ones) bower or npm.

i made quick firefox extension proof concept, native browser implementation better of course. addon more explanation can found here: https://github.com/ovanschie/backage-firefox-addon

i'm confident can speed page loading , decrease bandwidth usage (especially on mobile devices).

what think?

would implement in of sites if browsers support it?

browsers cache libraries , cdns exist this. googles hosted libraries: https://developers.google.com/speed/libraries/

browsers cache files based on url.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -