Skip to content

Commit

Permalink
Introduce negative sortOrder to run the JS defer BEFORE caching mec…
Browse files Browse the repository at this point in the history
…hanism (in `Magento/PageCache/etc/frontend/di.xml:15`)
  • Loading branch information
lbajsarowicz committed May 6, 2020
1 parent 1b780be commit b7ff624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/code/Magento/Theme/etc/frontend/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<plugin name="asyncCssLoad" type="Magento\Theme\Controller\Result\AsyncCssPlugin"/>
</type>
<type name="Magento\Framework\View\Result\Layout">
<plugin name="result-js-footer" type="Magento\Theme\Controller\Result\JsFooterPlugin"/>
<plugin name="deferJsToFooter" type="Magento\Theme\Controller\Result\JsFooterPlugin" sortOrder="-10"/>
</type>
<type name="Magento\Theme\Block\Html\Header\CriticalCss">
<arguments>
Expand Down

0 comments on commit b7ff624

Please sign in to comment.