New issue
Advanced search Search tips
Starred by 8 users
Status: WontFix
Closed: Oct 6
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Sign in to add a comment
Fast-downloading defered scripts seem to block rendering/parsing
Project Member Reported by, May 3 2017 Back to list

Run a timeline while loading the above. The effect may only be visible with a full cache.

According to devtools, the deferred script appears to block parsing, but this isn't what deferred scripts are supposed to do. Is this devtools misreporting, or is it really blocking parsing?

Also, it seems to block rendering, which is surprising, but I remember pmeenan@ mentioning this may depend on the elements that come before it.
2.1 MB View Download
Status: WontFix
Works fine for me. I modified the HMTL to be:

<div style="width:100px;height:100px;background:green"></div>
<script defer src="1.js"></script>
<script src="2.js"></script>

And timeline shows that 1.js is parsed at the very end, after 2.js. Closing as non-repro.
Sign in to add a comment