WebPagetest Forums
Startrender 1.16 s - but complete in 0.864 seconds - Printable Version

+- WebPagetest Forums (https://www.webpagetest.org/forums)
+-- Forum: Web Performance (/forumdisplay.php?fid=3)
+--- Forum: Discuss Test Results (/forumdisplay.php?fid=4)
+--- Thread: Startrender 1.16 s - but complete in 0.864 seconds (/showthread.php?tid=675)



Startrender 1.16 s - but complete in 0.864 seconds - piratos - 04-17-2011 03:48 AM

???

http://www.webpagetest.org/result/110416_D2_E0V2/1/details/


RE: Startrender 1.16 s - but complete in 0.864 seconds - pmeenan - 04-18-2011 10:05 PM

Yep, check out the screen shots (document complete is blank): http://www.webpagetest.org/result/110416_D2_E0V2/1/screen_shot/

The javascript in the head of your document (particularly the external reference) is causing it. If you move the javascript to the bottom of the page the rendering should happen earlier. The browser processes things in the order they are parsed and it can't process anything until it has loaded and executed the javascript blocks (including external code). When it reaches the end of the document there are no other external references left so it fires the onLoad event (document complete) but the render hasn't happened yet because those are done in a lazy fashion to be more efficient about painting to the screen.


RE: Startrender 1.16 s - but complete in 0.864 seconds - piratos - 04-21-2011 07:22 AM

Thank you - and here are the new results:

http://www.webpagetest.org/result/110420_XE_EY3E/

it works !


RE: Startrender 1.16 s - but complete in 0.864 seconds - pmeenan - 04-21-2011 08:52 AM

Nicely done.