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 ago1 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 yesterday

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

26

—

LowBetter than 41% of packages

Maintenance5

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community10

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

1361d 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/92f8e461e78a0a329cc789c8aa51ada74ae2b7cb0ea12ecc4b09a834d114d236?d=identicon)[timvango](/maintainers/timvango)

---

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

[elgentos/regenerate-catalog-urls

Regenerate Catalog URL Rewrites (products, categories, cms pages)

2842.6M](/packages/elgentos-regenerate-catalog-urls)[nosto/module-nostotagging

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

27703.7k4](/packages/nosto-module-nostotagging)[tig/postnl-magento2

TIG Magento 2 PostNL extension

59570.5k5](/packages/tig-postnl-magento2)[myparcelnl/magento

A Magento 2 module that creates MyParcel labels

1860.2k](/packages/myparcelnl-magento)[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[zwernemann/module-withdrawal

Magento 2 EU Withdrawal Button Module - Adds a withdrawal/revocation button for orders in compliance with EU Directive (EU) 2023/2673

244.9k2](/packages/zwernemann-module-withdrawal)

PHPackages © 2026

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