Speculatively parse async and link preload scripts
Categories
(Core :: Performance, enhancement, P2)
Tracking
()
Performance Impact | low |
People
(Reporter: denispal, Assigned: denispal)
References
Details
Bug 1606652 did not change the behaviour for async and link preload scripts. Parsing these speculatively often meant they needlessly executed very early and caused regressions since they prevent other important tasks such as painting to occur asap.
Instead, if async script execution can be made as a low priority runnable then we can start parsing these speculatively as well. I also noticed that over 90% of link preload scripts are executed during page load, and often as an async script so they should also be enabled.
Comment 1•4 years ago
|
||
Could you set a priority and severity for this as well?
Assignee | ||
Updated•4 years ago
|
Comment 2•2 years ago
|
||
Hi Denis, can you please set the expected Performance Impact for this bug?
Assignee | ||
Comment 3•2 years ago
|
||
When I measured this, it wasn't a big win. The biggest win of Bug 1606652 was moving work off the main thread, and we already do this for async scripts.
Description
•