Skip to content

Commit b7ff624

Browse files
committed
Introduce negative sortOrder to run the JS defer BEFORE caching mechanism (in Magento/PageCache/etc/frontend/di.xml:15)
1 parent 1b780be commit b7ff624

File tree

1 file changed

+1
-1
lines changed
  • app/code/Magento/Theme/etc/frontend

1 file changed

+1
-1
lines changed

app/code/Magento/Theme/etc/frontend/di.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<plugin name="asyncCssLoad" type="Magento\Theme\Controller\Result\AsyncCssPlugin"/>
3131
</type>
3232
<type name="Magento\Framework\View\Result\Layout">
33-
<plugin name="result-js-footer" type="Magento\Theme\Controller\Result\JsFooterPlugin"/>
33+
<plugin name="deferJsToFooter" type="Magento\Theme\Controller\Result\JsFooterPlugin" sortOrder="-10"/>
3434
</type>
3535
<type name="Magento\Theme\Block\Html\Header\CriticalCss">
3636
<arguments>

0 commit comments

Comments
 (0)