Skip to content

Commit f4e0042

Browse files
author
Denys Rul
committed
MAGETWO-33939: Core scripts to eliminate (1 script)
1 parent 292de1d commit f4e0042

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

app/code/Magento/Cookie/View/frontend/templates/require_cookie.phtml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
*/
66
?>
77
<?php /** @var \Magento\Cookie\Block\RequireCookie $block */ ?>
8-
<script>
9-
require([
10-
"jquery",
11-
"mage/mage"
12-
], function($){
13-
$('body').mage('requireCookie', <?php echo $block->getScriptOptions(); ?>);
14-
});
15-
</script>
8+
<script type="text/x-magento-init">
9+
{
10+
"body": {
11+
"requireCookie": <?php echo $block->getScriptOptions(); ?>
12+
}
13+
}
14+
</script>

0 commit comments

Comments
 (0)