javascript - Why inline script > External stylesheet is faster than External stylesheet > Script? -
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
Post a Comment