> What about caching? If the HTML and the JS are both updated, but the browser receives the new version of one and the old version of another, this will break your page.
Only if your page requires JavaScript to function and doesn't gracefully degrade. None of us would ever write that sort of page, would we?
It would break anyway because pages are usually designed to degrade when JavaScript is disabled, not when the JavaScript fails to load or behaves in an unexpected way.
Only if your page requires JavaScript to function and doesn't gracefully degrade. None of us would ever write that sort of page, would we?