skip to Main Content

I check many references about the use of requirejs-config.js but the actual use of this file is not cleared yet. If anyone is aware of it so please help me.

2

Answers


  1. RequireJS is a JavaScript file and module loader.
    "requirejs-config.js" is the file in which we add all configurations. Just read the Magento doc below page you will get more clarity.

    https://devdocs.magento.com/guides/v2.4/javascript-dev-guide/javascript/requirejs.html

    Login or Signup to reply.
  2. RequireJS is a JavaScript file and module loader. It improves perceived page load times because it allows JavaScript to load in the background. In particular, it enables asynchronous JavaScript loading.
    https://magento.stackexchange.com/questions/148985/use-require-config-js-to-load-files-needed-on-all-pages

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search