I think you could add a new html5 cache function by providing a cache manifest: http://www.html5rocks.com/en/tutorials/appcache/beginner/
then you can use requirejs "domReady" to get the right load event: http://requirejs.org/docs/api.html#pageload
and then listen for the correct event (code taken from the first link):
window.applicationCache.addEventListener('updateready', function(e) { if (window.applicationCache.status == window.applicationCache.UPDATEREADY) { // Browser downloaded a new app cache. if (confirm('A new version of this site is available. Load it?')) { window.location.reload(); } } else { // Manifest didn't changed. Nothing new to server. }}, false);
at this moment, when you update urlArgs, you will get new js files and with the manifest cache file you will get new html files
source share