Skip to content

Latest commit

 

History

History
79 lines (67 loc) · 2.81 KB

File metadata and controls

79 lines (67 loc) · 2.81 KB
layout group subgroup title menu_title menu_order menu_node version github_link redirect_from
default
jsdg
1_Javascript
JavaScript
JavaScript
1
parent
2.0
javascript-dev-guide/javascript/js_overview.md
guides/v2.0/frontend-dev-guide/javascript/js_overview.html
guides/v1.0/frontend-dev-guide/javascript/js_overview.html

By default, the Magento application uses the RequireJS file and module loader to optimize the time of loading pages with included JavaScript files, and to manage dependencies of JavaScript resources.

You can follow the same approach when customizing Magento JavaScript, or disable all the default scripts and their load by RequireJS.

For information about how JS resources are located and configured, see Configure JavaScript

What's in this chapter

Topics of this chapter describe the following:

Terms used

Term Description
JavaScript component (JS component) Any separate .js file decorated as AMD module.
Ui component JS component located in the Magento_Ui module, in the app/code/Magento/Ui/view directory.
jQuery UI widget A JS component/widget provided by jQuery UI library used in Magento.
jQuery widget Custom widget created using jQuery UI Widget Factory and decorated as AMD module. Many Magento JS components are jQuery widget.