Any tips on how to handle site layouts that depend on the js that is asynchronously loaded via the async attribute? Seems like this can cause a flash of unstyled/unmodified html while that js is loaded and executed.
If you can't, you can often load a skeleton containing just the HTML & CSS for page layout into the browser, and then fill in the content via JS later. The user cares about responsiveness; if they see the basic structure of the page load, even if there's no content yet, it'll feel more snappy than a page which waits for all the JS to download before rendering anything.
So if .no-js class is available (when browser disabled JS), .my-class element still visible.
If .no-js is not available (when browser enabled JS), .my-class element will be hidden and visible by your JS
See http://stackoverflow.com/questions/6724515/what-is-the-purpo....