I'm currently asking myself, when javascripts in the header of a page are executed?
After all contents are loaded? During loading images? Before loading the site?
Reason is, I want to implement a barrier to prevent users accessing a site without javascript (it's for internal company use, don't blame me for the requirement) - my idea was to create a div-error-message that is hidden with javascript and a screenshot of my page greyed out, also hidden if javascript is disabled.
Problem is, such a screenshot can be quite large in terms of file-sizes. So, with a slow connection, would you have to load the whole image before javascript hides it?!