-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Improvements webfont loading for theme #29044
Improvements webfont loading for theme #29044
Conversation
Hi @mrtuvn. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. |
@magento run all tests |
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.
I always like it when we remove some redundancy, good job!
No possible to test with automatic tests. We need to manually make sure that icons are still working on Luma theme. |
Hi @krzksz, thank you for the review. |
See: https://developers.google.com/web/updates/2016/02/font-display#swap
Rendering 'any font' won't do for icons. |
app/design/frontend/Magento/luma/Magento_Theme/layout/default_head_blocks.xml
Outdated
Show resolved
Hide resolved
0e68656
to
0293456
Compare
@magento run all tests |
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.
@mrtuvn Earlier I suggested using either
However some icons are quite critical to the experience. For example the icons in the header, especially on mobile: Therefore Do you agree? |
Note: Functional tests are failing |
3b397fa
to
be3c1ec
Compare
@magento run all tests |
1 similar comment
@magento run all tests |
Hi @mrtuvn, thank you for your contribution! |
Description (*)
This PR aims to bring improvement while theme load icons font. Apply font-display while magento import font icons
Ensure text remains visible during webfont load
The best option finally is block or optional for optimize web icons font load
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)
Resolved issues: