Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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

For example the <noscript> tag works that way.


None of us would ever indulge in soapbox politics, would we?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: