-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch implements render-blocking fonts following the doc [1]: 1. Sets a timer that starts on the first font preload, and fires after a fixed amount of time since navigation 2. Sets a timer that starts when rendering can be unblocked if fonts are not render-blocking, and fires at a fixed delay after this event (i.e., limiting font-caused FCP delay) 3. Make all fonts non-render-blocking when either timer fires Note that the first part functionally conflicts with an existing logic that shortly blocks rendering for 50ms since the first font preload, which was introduced in the previous project [2]. Hence, they are implemented to share the same timer. [1] https://docs.google.com/document/d/11xC1yC735bx2b_ybnLAUa4DeAPClt_v7EZktJw7KnFo/edit?resourcekey=0-DCQxDfZyJgNvmBnBHt247w [2] https://crbug.com/1040632 Bug: 1412861 Change-Id: I0a9aa42e22012930fa712bd58d806a91e09a54a7 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4237941 Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Reviewed-by: Chris Harrelson <chrishtr@chromium.org> Cr-Commit-Position: refs/heads/main@{#1105813}
- Loading branch information
1 parent
68c207f
commit bcdc49b
Showing
9 changed files
with
365 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.