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)

enhancement

Tracking

()

People

(Reporter: smaug, Assigned: smaug)

Details

Attachments

(1 file)

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.

Priority: -- → P2

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.)

https://treeherder.mozilla.org/#/jobs?repo=try&revision=cbdb281ee34b5f83ded39eaaabd99772121a4df7

The idea came the we should interrupt only if we haven't painted for awhile.

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: