-
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
Fix duplicate css when enable critical path #28480
Fix duplicate css when enable critical path #28480
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. |
b03189a
to
368d869
Compare
@magento run all tests |
@magento run all tests |
@ihor-sviziev just continue works by @krzksz after long inactive |
@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.
Hi @mrtuvn,
In general your changes looks good, but I have few suggestions, please review them
app/code/Magento/Theme/Test/Unit/Controller/Result/AsyncCssPluginTest.php
Outdated
Show resolved
Hide resolved
app/code/Magento/Theme/view/frontend/templates/js/css_rel_preload.phtml
Outdated
Show resolved
Hide resolved
@mrtuvn Could you also squash your changes into one or few commits in order not to have 13 merge commits? |
b1e074b
to
23192a0
Compare
@ihor-sviziev i have squashed commits and repick all to one commit. Ready for review and test |
@magento run all tests |
@magento run Static Tests |
@magento run Database Compare, Functional Tests CE, Functional Tests EE, Functional Tests B2B, Integration Tests, Magento Health Index, Sample Data Tests CE, Sample Data Tests EE, Sample Data Tests B2B, Unit Tests, WebAPI Tests |
@magento run Semantic Version Checker, Database Compare |
Hi @ihor-sviziev, thank you for the review. |
✔️ QA Passed Manual testing scenario:
Before: ✖️ After: ✔️ The stylesheets are only loaded once ✔️ all external stylesheets are located in the same order at the end of , after inline critical CSS Also was tested on the Blank theme and with sample data. |
Hi @mrtuvn, thank you for your contribution! |
Hi @mrtuvn Did you test on production mode? |
What problem with production that you got? This patch only available in 2.4-develop branch |
Description (*)
This PR continue great works #27211 by @krzksz in latest codebase
This PR aim to bring patch fix issue css show twice. Before the fix magento place redundant link style at bottom of page before body close end
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)