4 ms·
This example production website uses require.js to dynamically load only the static files needed for the current View, so initial page loads are fast. After a u
by welder 13y ago
This example production website uses require.js to dynamically load only the static files needed for the current View, so initial page loads are fast. After a user has loaded the static files, they will be cached by the user's browser. This means a page transition will be ONLY 1 api call to retrieve the View's data.
view-source:https://www.wakati.me/ https://www.wakati.me/
https://www.wakati.me/static/js/router.js https://www.wakati.me/static/js/router.js
This also allows changing 1 version number to invalidate the user's cached static files. I don't know if the OP's build script supports that or not.
Above site was built using conventions found here:
http://ahamlett.com/Backbone.localStorage/ http://ahamlett.com/Backbone.localStorage/