Open
Bug 1536789
Opened 6 years ago
Updated 2 years ago
Consider interrupting html parser's flush loop before script execution if there is a possible first contentful paint pending
Categories
(Core :: DOM: HTML Parser, enhancement, P2)
Core
DOM: HTML Parser
Tracking
()
NEW
People
(Reporter: smaug, Assigned: smaug)
Details
Attachments
(1 file)
2.05 KB,
patch
|
Details | Diff | Splinter Review |
There are pages where there is first some content and then some <script>s, and we often end up executing those scripts before painting. That leads to worse first contentful paint times.
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Updated•6 years ago
|
Priority: -- → P2
Assignee | ||
Comment 2•6 years ago
|
||
Some sites really like this https://i.ibb.co/PML4SbD/image.png
but then Facebook doesn't.
It is possible that we should paint even less often during pageload to not regress Facebook.
(FB uses heavily animation frame callbacks.)
Assignee | ||
Comment 3•6 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=cbdb281ee34b5f83ded39eaaabd99772121a4df7
The idea came the we should interrupt only if we haven't painted for awhile.
Updated•2 years ago
|
Severity: normal → S3
You need to log in
before you can comment on or make changes to this bug.
Description
•