Closed
Description
Preconditions (*)
- Magento 2.3.4
Steps to reproduce (*)
- Enable Critial CSS
- Validate html https://validator.w3.org/
Expected result (*)
- Validate html without error
Actual result (*)
- Validate html error
https://prnt.sc/qz5dz9
magento2/app/code/Magento/Theme/Controller/Result/AsyncCssPlugin.php
Lines 60 to 66 in 9544fb2
need change to
$loadCssAsync = sprintf(
'<link rel="preload" as="style" media="%s"
onload="this.onload=null;this.rel=\'stylesheet\'"' .
' href="%s">',
$media,
$href
);
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentIndicates that Pull Request has been created to fix issueIndicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branch