Skip to content

Commit ad53f87

Browse files
MAGETWO-87571: Backport of PR-5028 for Magento 2.1: Load jquery using requirejs to p… #13545
- Merge Pull Request #13545 from hostep/magento2:backport-pr-5028 - Merged commits: 1. 53d3ba2
2 parents a08fd0d + 53d3ba2 commit ad53f87

File tree

1 file changed

+10
-3
lines changed
  • app/code/Magento/Theme/view/frontend/templates/html

1 file changed

+10
-3
lines changed

app/code/Magento/Theme/view/frontend/templates/html/print.phtml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@
55
*/
66
?>
77
<script>
8-
jQuery(function() {
9-
window.print();
10-
});
8+
require(
9+
[
10+
'jquery'
11+
],
12+
function($) {
13+
$(function() {
14+
window.print();
15+
});
16+
}
17+
);
1118
</script>

0 commit comments

Comments
 (0)