The default version of bundling lies in the fact that an entire set of files is loaded on each webpage, such as checkout, product and category page, etc.
According to the Magento documentation, there’re two main ways to put it into practice:
- Manual adjusting based on RequireJS optimizer;
- Using the Magento_Baler Module.
The first option is quite challenging and time-consuming, and it involves manual configuration for each bundle.
The Magento_Baler module uses a similar approach but involves automation. So it’s an improved and upgraded version of the first method, which has a high potential for further development and usage among engineers. Currently, the module is in the early alpha-testing stage, is not stable, and contains a range of bugs.
It merely allows selecting a theme for which you need to launch bundling and start rendering. There is a pre-installed set of webpages, and after generation, you’ll receive more scripts connected to the webpage than through M2DevTools. You could also use another option—Magepack.
Besides, we’ve already used it on the Magento 2.3.4 stores, and it works pretty well. There, the main idea is that you specify links to webpages, such as homepage, catalog, product, and bundling is generated based on these links. At the course of generating, the tool also involves the checkout stage and shopping cart. One command generates build.js, and the second one launches the bundling itself.
Subscribeto our newsletter
3 Steps to Writing SEO-Friendly Ecommerce Product Description10 Dec 2020In the wake of the pandemic, we saw many industries suffer from the lockdown. A lot of businesses had to close, many lost a lot of money and had to let their staff go.
Buy Now Pay Later Functionality for Ecommerce Business03 Nov 2020We’ve recently discovered the CNN Business report, which reveals that big brands and retailers use the so-called ‘buy now, pay later’ feature, which has become a booming trend in the whole industry.
In-Store Pickup Functionality for Magento 2 Stores: Best Practices & How to Implement27 Oct 2020As stated in Retail TouchPoints, more than 90% of brands are expected to offer their customers an in-store pickup by 2021.