-
Notifications
You must be signed in to change notification settings - Fork 104
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
shouldInlineFonts if fonts or inlineFonts = true #73
base: main
Are you sure you want to change the base?
Conversation
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
cc @developit |
Hiya - sorry for taking a bit to get around to this. I'm not entirely sure what the best option is for this, since the property is currently a tri-state:
|
This could be a breaking change since users might be expecting a certain behavior. Maybe we can rethink the |
Removing it seems like the way to go. |
Description of changes
This change updates
shouldInlineFonts
to evaluate as described in the README: true if either thefonts
orinlineFonts
option is set to true. At the moment, bothfonts
andinlineFonts
would need to be set to true for the whole statement to be truthy.inlineFonts
Boolean Inline critical font-face rules (default:false
)preloadFonts
Boolean Preloads critical fonts (default:true
)fonts
Boolean Shorthand for settinginlineFonts
+preloadFonts
- Values:true
to inline critical font-face rules and preload the fontsfalse
to don't inline any font-face rules and don't preload fonts@developit