2

Check this link Configuration best practices Magento recommends that you use third-party tools for minification and bundling (like r.js). Magento built-in mechanisms are not optimal and are shipped as fallback alternatives. Activating the HTTP2 protocol can be a good alternative to using JS bundling. The protocol provides pretty much the same benefits. We ...


1

As per Sohel's comment, enable the minification however bundling is best left disabled in it's current form. It puts together all files needed to all pages and so causes a huge JS file which is inefficient. RequireJS will serve just the required JS files reasonably quickly (especially if serving via HTTP2), so a lot of requests but still less to serve to ...


1

I managed to get what I needed define([ 'uiComponent', 'jquery', 'Magento_Ui/js/modal/modal', 'Magento_Customer/js/customer-data', 'Vendor_Module/js/check_login' ], function (Component, $, modal, storage, checklogin) { 'use strict'; var getLogin = checklogin(); // firstname is the return value from check_login.js ...


Only top voted, non community-wiki answers of a minimum length are eligible