We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd0ccc0 commit 9251ed4Copy full SHA for 9251ed4
app/code/Magento/PageCache/view/frontend/templates/javascript.phtml
@@ -5,14 +5,10 @@
5
*/
6
?>
7
<?php /** @var \Magento\PageCache\Block\Javascript $block */ ?>
8
-<script>
9
-require([
10
- 'jquery',
11
- 'pageCache',
12
- 'domReady!'
13
-], function($){
14
- 'use strict';
15
-
16
- $('body').pageCache(<?php echo $block->getScriptOptions(); ?>);
17
-});
18
-</script>
+<script type="text/x-magento-init">
+ {
+ "body": {
+ "pageCache": <?php echo $block->getScriptOptions(); ?>
+ }
+</script>
0 commit comments