Exclude icon fonts from AlignFontDisplayAutoTimeoutWithLCPGoal intervention
In previous study, we found out that: - The "failure" mode of this intervention breaks icon fonts massively - Icon fonts generally define almost all of their glyphs in Private Use Area, while non-icon fonts don't use PUA that much Hence, this patch adds a heuristic to decide whether a font is an icon font by checking its PUA usage, and use that as a hint to decide whether AlignFontDisplayAutoTimeoutWithLCPGoal should move a font into the failure display period. As a result: - Non-icon fonts that don't finish loading fast enough after navigation will end up with fallback - Icon fonts will have the same behavior as before Bug: 1065508 Change-Id: I54e52e714a74c17b647d8b072d2f634660e56627 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2261898Reviewed-by:Chris Harrelson <chrishtr@chromium.org> Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org> Cr-Commit-Position: refs/heads/master@{#782702}
Showing
File added
Please register or sign in to comment