-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve page experience for fonts in core themes #6674
Merged
westonruter
merged 22 commits into
develop
from
fix/6036-improve-core-themes-fonts-experience
Nov 30, 2021
Merged
Changes from 7 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
0be7466
The 'font-display' value replaced from 'swap' to 'optional'
bartoszgadomski dfbf616
Preload link added for all font files
bartoszgadomski df8fbc2
Test case for font files preloading added
bartoszgadomski 5d282ce
Fix theme case to not execute assertions if a given theme is not inst…
bartoszgadomski 1ab2a12
Reuse already parsed URL value and only preload first externalized da…
westonruter a5e6f6d
Harden collection of font sources
westonruter c5de528
Use data provider for test_font_files_preloading
westonruter 4e0403f
Fonts preloading rules improved
bartoszgadomski 503aa47
Fix failing tests due to font-display:optional
bartoszgadomski 3eda2bc
Logic for 'font-display' property and fonts preloading improved
bartoszgadomski 49c1103
Use LinkManager instead of AMP_DOM_Utils::create_node
bartoszgadomski 009333b
Update request destination parameter
bartoszgadomski 74ef48b
Merge branch 'develop' of github.com:ampproject/amp-wp into fix/6036-…
westonruter 4c5b586
Use font-display:block for font icon instead of font-display:auto
westonruter 97f8497
Improve PHP CSS Parser API usage
westonruter 7c6afe7
Add failing test case for no preload link being added when the first …
westonruter e02b96a
Font preload logic improved
bartoszgadomski 95c7da2
Add another failing test to ensure preload links are added when parse…
westonruter 6c16113
Eliminate redundant code
westonruter 773395e
Only catch exceptions specific to php-css-parser when parsing
westonruter b3b6579
Ensure font preloads are added for cached stylesheets
westonruter 96b748b
Bust stylesheet cache group
westonruter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Er, I think I may have meant FOIT here.