javascript - Why inline script > External stylesheet is faster than External stylesheet > Script? -


1. stylesheet > script

http://stevesouders.com/cuzillion/?c0=hc1hfff2_0_f&c1=hc1hfff2_0_f&c2=hb0wfff0_0_f&c3=hb0wfff0_0_f&c4=bi1hfff2_0_f&c5=bi1hfff2_0_f&t=1438003196394

2. script > stylesheet

http://stevesouders.com/cuzillion/?c0=hb0wfff0_0_f&c1=hb0wfff0_0_f&c2=hc1hfff2_0_f&c3=hc1hfff2_0_f&c4=bi1hfff2_0_f&c5=bi1hfff2_0_f&t=1438003184842

my understanding scripts block parsing. having script before stylesheet slow down page load. in above instance when have inline script before css files page load faster?

can explain why?

i seeing difference on 2 events 'domcontentloaded' , 'load'

difference between load event in 2 case approx 5-15ms ( second 1 faster ) difference between domcontentloaded 2.5s ( second 1 faster ). not sure, reason behind should script parsed before css starts downloading network.


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -