PHPackages                             weprovide/magento2-module-async-defer-js - 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. weprovide/magento2-module-async-defer-js

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

weprovide/magento2-module-async-defer-js
========================================

A module which adds the "async" and "defer" HTML attributes to scripts

1.1.0(3y ago)49.7k[3 issues](https://github.com/weprovide/magento2-module-async-defer-js/issues)MITPHP

Since Nov 2Pushed 3y ago2 watchersCompare

[ Source](https://github.com/weprovide/magento2-module-async-defer-js)[ Packagist](https://packagist.org/packages/weprovide/magento2-module-async-defer-js)[ RSS](/packages/weprovide-magento2-module-async-defer-js/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (6)Used By (0)

Async / Defer JS
================

[](#async--defer-js)

"Async Defer JS" is a module which adds a configuration that says what HTML scripts should get an "async" or "defer" attribute.

It acts upon scripts added as page assets. A script which is added by a third party through some other way than a page asset won't get the "async" or "defer" attribute even if it matches one of the regular expressions configured.

Installation
------------

[](#installation)

Run the following command in the root of Magento 2.

```
$ composer require weprovide/magento2-module-async-defer-js

```

Once installed the only thing left to do is actually enable it.

```
$ bin/magento module:enable WeProvide_AsyncDeferJs
$ bin/magento setup:upgrade --keep-generated

```

Configuration
-------------

[](#configuration)

In `System > Configuration > Advanced > Developer > JavaScript Settings` two configuration settings can be seen. One of them is the regular expression used for the `async` HTML attribute, the other for `defer`.

There is also an other setting, the `Check block scripts for "async" and "defer"` which defaults to "No", and can be enabled when there is also a need to apply `async` and `defer` to scripts inside blocks.

[![Configuration Settings](adjs-configuration.png)](adjs-configuration.png)

The following regex can be used to match all scripts accept the require.js: `^((?!require.js).)*$`

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~171 days

Total

3

Last Release

1309d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/80809e7caf8341b1bac3d759e2b159a38b9bdab2deee5b0d4d66de6c83b992d1?d=identicon)[IntractoSupport](/maintainers/IntractoSupport)

![](https://www.gravatar.com/avatar/9e723dd83f374215e85b05fa260826f267bcef0dfb1026246ca1d845ae4f3a39?d=identicon)[JeroenNoten](/maintainers/JeroenNoten)

![](https://www.gravatar.com/avatar/6f1ed5a230a1b7a889ad5bb727fc43f070e2d57ad9f857625226096cbfcc80c7?d=identicon)[aadmathijssen](/maintainers/aadmathijssen)

![](https://www.gravatar.com/avatar/5270be3fd791a1045f0d928c0ca5d801d2c9dac77b83338a8ac877b94c6f7934?d=identicon)[mischabraam](/maintainers/mischabraam)

---

Top Contributors

[![MrBlueEyez](https://avatars.githubusercontent.com/u/16151444?v=4)](https://github.com/MrBlueEyez "MrBlueEyez (2 commits)")

---

Tags

magento2magento2-module

### Embed Badge

![Health badge](/badges/weprovide-magento2-module-async-defer-js/health.svg)

```
[![Health](https://phpackages.com/badges/weprovide-magento2-module-async-defer-js/health.svg)](https://phpackages.com/packages/weprovide-magento2-module-async-defer-js)
```

###  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)
