Skip to content
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

Performance feature: Adding 'display=swap' to default RWD Google Font #886

Merged
merged 1 commit into from
Jan 20, 2020

Conversation

davis2125
Copy link
Contributor

The display=swap parameter is now used by default when you copy and paste code from the Google Fonts site. I've updated the page.xml file to reflect this

<action method="addLinkRel"><rel>stylesheet</rel><href><![CDATA[//fonts.googleapis.com/css?family=Raleway:300,400,500,700,600&display=swap]]></href></action>

Per Google:

This intervention would ensure self-hosted Web Fonts have a zero second block period and an infinite swap period. Browsers would draw text immediately with a fallback used if the font face isn't loaded, but swap as soon as it does load.

References

@Flyingmana Flyingmana merged commit 6251382 into OpenMage:1.9.4.x Jan 20, 2020
@sreichel sreichel added enhancement performance Performance related Template : rwd Relates to rwd template labels May 31, 2020
@sreichel sreichel added this to the Release 19.4.1 milestone Jun 27, 2020
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 20, 2020
This intervention would ensure self-hosted Web Fonts have a zero
second block period and an infinite swap period. Browsers would draw
text immediately with a fallback used if the font face isn't loaded,
but swap as soon as it does load.
edannenberg pushed a commit to edannenberg/magento-lts that referenced this pull request Aug 24, 2020
This intervention would ensure self-hosted Web Fonts have a zero
second block period and an infinite swap period. Browsers would draw
text immediately with a fallback used if the font face isn't loaded,
but swap as soon as it does load.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement performance Performance related Template : rwd Relates to rwd template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants