Magento 2
How to load a JavaScript on demand using RequireJS
Development
requirejs
,
javascript
,
requirejs-config
dmitrii_fediuk
(Dmitrii Fediuk)
January 24, 2016, 7:33am
2
See also:
How to insert some JavaScript to a *.phtml template in the proper way (x-magento-init)
domReady!: a useful RequireJS plugin to ensure the DOM is loaded before your Magento 2 JavaScript execution
show post in topic