PHPackages                             pure\_mashiro/magento2-bundlejs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. pure\_mashiro/magento2-bundlejs

ActiveMagento2-module[Utility &amp; Helpers](/categories/utility)

pure\_mashiro/magento2-bundlejs
===============================

Advanced JavaScript Bundling

1.3.5(2y ago)111.5k↓29.6%3[2 issues](https://github.com/ManaLight/magento2-bundlejs/issues)[1 PRs](https://github.com/ManaLight/magento2-bundlejs/pulls)OSL-3.0PHP

Since Jun 6Pushed 2y ago2 watchersCompare

[ Source](https://github.com/ManaLight/magento2-bundlejs)[ Packagist](https://packagist.org/packages/pure_mashiro/magento2-bundlejs)[ RSS](/packages/pure-mashiro-magento2-bundlejs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (7)Versions (14)Used By (0)

Advanced JavaScript Bundling
============================

[](#advanced-javascript-bundling)

- Delay rendering of non-important components on cacheable pages
- Use bundles on non-cacheable pages.

Installation
============

[](#installation)

```
composer require pure_mashiro/magento2-bundlejs

```

PageSpeed scores with Luma theme
================================

[](#pagespeed-scores-with-luma-theme)

[![Mobile](https://camo.githubusercontent.com/0883f106b06ccd04a25dfded26bf3c8ce7e302e75be1ee4552505a30800442a3/68747470733a2f2f6d61726b6574706c6163652e6d6167656e746f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f662f652f666563345f696d616765342e706e673f73746f72653d64656661756c7426696d6167652d747970653d696d616765266669743d626f756e6473)](https://camo.githubusercontent.com/0883f106b06ccd04a25dfded26bf3c8ce7e302e75be1ee4552505a30800442a3/68747470733a2f2f6d61726b6574706c6163652e6d6167656e746f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f662f652f666563345f696d616765342e706e673f73746f72653d64656661756c7426696d6167652d747970653d696d616765266669743d626f756e6473)[![Desktop](https://camo.githubusercontent.com/21d6230ddbd50da96ead9a083fb4b08299797c556f2455a1e782a56ac2b5fd98/68747470733a2f2f6d61726b6574706c6163652e6d6167656e746f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f332f612f336137615f696d61676531302e706e673f73746f72653d64656661756c7426696d6167652d747970653d696d616765266669743d626f756e6473)](https://camo.githubusercontent.com/21d6230ddbd50da96ead9a083fb4b08299797c556f2455a1e782a56ac2b5fd98/68747470733a2f2f6d61726b6574706c6163652e6d6167656e746f2e636f6d2f6d656469612f636174616c6f672f70726f647563742f332f612f336137615f696d61676531302e706e673f73746f72653d64656661756c7426696d6167652d747970653d696d616765266669743d626f756e6473)

External links
==============

[](#external-links)

[Demo Video](https://youtu.be/nTiZuwHTS-E)

[Magento Marketplace](https://marketplace.magento.com/pure-mashiro-magento2-bundlejs.html)

[User Guide](https://marketplace.magento.com/media/catalog/product/pure_mashiro-magento2-bundlejs-1-3-1-ce/user_guides.pdf)

My perspective
==============

[](#my-perspective)

Magento 2 uses require JS to load JS when they are necessary. However, when the page just starts, it already needs to load almost 200 JS (or even more) files. In HTTP/1, it is a fatal weakness because the file needs to be downloaded one by one which greatly increase the loading time. However, with HTTP/2 enabled, this weakness of the Magento 2 front is covered and no longer a problem. Therefore, now, the core web vital of the Magento 2 luma theme is pretty decent. Except for the product detail page, it has a poor CLS. There is a git issue for it, which I hope will be merged into the develop branch in the future: [magento/magento2#33265](https://github.com/magento/magento2/pull/33265). The dev can always migrate the fix ahead as well.

Customized Magento 2 website still usually has a low google speed score compared to the Luma default. The score starts becoming low when we start using 3rd party JS and customize without taking CLS into account (Slider and other bad JS codes usually degrade CLS). The page tends to load JS first even though the image tag is before the JS which leads to the LCP vital will get degraded when using 3rd party JS.

Hyva theme will also have the same problem. The page speed score of the Hyva theme will become lower if the page uses 3rd party JS. The score in mobile can be reduced from 9x to 70 or 50 or even 30 depending on the number of 3rd party JS. Don't get me wrong. I don't say 70 or 50 is a bad result, it is good but it won't remain 9x score. They mention "Out of the box, Hyvä scores a 100/100 score in Google PageSpeed and it passes Core Web Vitals on all metrics". However, the Luma theme by default can also have a decent score 8x-9x/9x in Google PageSpeed (except for the product detail page because of the CLS issue).

Advanced bundle JS (not the native Magento bundle) is usually a solution for HTTP/1. However, with HTTP/2, I see that it is not necessary. With Luma default, with advanced bundle JS, the score will be even lower compared to when not using bundle. The problem is similar to with 3rd party JS. The page tends to load JS first but because the JS is now bundled, the file size got bigger and degraded LCP.

That is why, in my extension, it is recommended to use bundle only on non-cacheable pages. To further improve loading time, the extension has a feature to delay JS execution in which non-important components will be only rendered when the user starts interacting with the page.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~12 days

Total

8

Last Release

989d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/24420996?v=4)[ManaLight](/maintainers/ManaLight)[@ManaLight](https://github.com/ManaLight)

---

Top Contributors

[![ManaLight](https://avatars.githubusercontent.com/u/24420996?v=4)](https://github.com/ManaLight "ManaLight (19 commits)")[![elisei](https://avatars.githubusercontent.com/u/1786389?v=4)](https://github.com/elisei "elisei (5 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/pure-mashiro-magento2-bundlejs/health.svg)

```
[![Health](https://phpackages.com/badges/pure-mashiro-magento2-bundlejs/health.svg)](https://phpackages.com/packages/pure-mashiro-magento2-bundlejs)
```

###  Alternatives

[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)[lillik/magento2-price-decimal

Magento 2 Price Decimal Precision

111147.5k](/packages/lillik-magento2-price-decimal)[nosto/module-nostotagging

Increase your conversion rate and average order value by delivering your customers personalized product recommendations throughout their shopping journey.

27659.1k4](/packages/nosto-module-nostotagging)[magepal/magento2-customeraccountlinksmanager

Customer Account Links Manager for Magento2 allows you to quickly and easily remove unwanted links from customer account dashboard

4084.9k](/packages/magepal-magento2-customeraccountlinksmanager)[doofinder/doofinder-magento2

Doofinder module for Magento 2

13204.0k1](/packages/doofinder-doofinder-magento2)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
