Examples | Help
stevesouders.com
Cuzillion'cuz there are a zillion pages to check
Inline Scripts Block Rendering
posted by Steve Souders, April 21, 2008 11:41 PM
Nothing in the page is rendered until all inline scripts are executed. One workaround is to kickoff the execution of your inline scripts through setTimeout - this will allow the page to render. In this example a the 5 second while loop is wrapped in a function and called via setTimeout, so the page renders quickly while the inline script executes in the background.

Now: 1750841779
 
<HTML> <HEAD>
    </HEAD> <BODY>
    • image

      on domain1 using HTML tags

    • image

      on domain1 using HTML tags

    • inline script block

      with a 5 second execute time using HTML tags

    </BODY> </HTML>