PHPackages                             fballiano/openmage-load-javascripts-on-intent - 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. fballiano/openmage-load-javascripts-on-intent

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

fballiano/openmage-load-javascripts-on-intent
=============================================

Only load javascripts when the user interacts with the page.

0.3.0(1y ago)3152[3 issues](https://github.com/fballiano/openmage-load-javascripts-on-intent/issues)OSL-3.0PHPPHP &gt;=7.4.0

Since Jun 3Pushed 1y ago2 watchersCompare

[ Source](https://github.com/fballiano/openmage-load-javascripts-on-intent)[ Packagist](https://packagist.org/packages/fballiano/openmage-load-javascripts-on-intent)[ Docs](https://github.com/fballiano/openmage-load-javascripts-on-intent)[ Fund](https://www.buymeacoffee.com/fballiano)[ Fund](https://paypal.me/fabrizioballiano)[ RSS](/packages/fballiano-openmage-load-javascripts-on-intent/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

OpenMage Load Javascripts On Intent
===================================

[](#openmage-load-javascripts-on-intent)

**THIS MODULE IS IN ALPHA STAGE AND IT'S NOT WORKING YET**

What to obtain 100% PageSpeed score? Install this module then ;-)

What does it do? it proceses the HTML of every page, converting all javascript to `text/plain`, actually avoiding them from being loaded by the browsers on page load. Then injects a small javascript that will load all the other scripts only when the user starts interacting with the page (with a mouse movement, a click, a scroll or a few other events).

**If you find my work valuable, please consider sponsoring**
[![Sponsor me on GitHub](https://camo.githubusercontent.com/3f9a3c47d5a6c575b4d6c5f13ecaf55ff585c67a6ba47f87f8cf57e4cb7a1fdc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73706f6e736f722d3330333633443f7374796c653d666f722d7468652d6261646765266c6f676f3d4769744875622d53706f6e736f7273266c6f676f436f6c6f723d237768697465)](https://github.com/sponsors/fballiano "Sponsor me on GitHub")[![Buy me a coffee](https://camo.githubusercontent.com/430a7d4ff7294cc857ec60d5ea9f51241205a91cab8387143d33b4bd13e27912/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4275795f4d655f415f436f666665652d4646444430303f7374796c653d666f722d7468652d6261646765266c6f676f3d6275792d6d652d612d636f66666565266c6f676f436f6c6f723d626c61636b)](https://www.buymeacoffee.com/fballiano "Buy me a coffee")[![Donate via PayPal](https://camo.githubusercontent.com/b811c9741e973ac713b2a33c9bfd025f0fad57a7b1d57a29d03b30badb6d04f9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f50617950616c2d3030343537433f7374796c653d666f722d7468652d6261646765266c6f676f3d70617970616c266c6f676f436f6c6f723d7768697465)](https://www.paypal.com/paypalme/fabrizioballiano "Donate via PayPal")Notes
-----

[](#notes)

This module should work with cookie management solutions (eg: CookieBot) that modify the `script` tags setting them as `text/plain` and adding a `data-cookiesomething` attribute. In fact all `script` tags with `text/plain` type and any `data-` will not be processed by the module, they will be skipped entirely.

This module also works with inline scripts.

Backup!!!
---------

[](#backup)

Backup everything while using this module!!! This module is provided "as is" and I'll not be responsible for any data damage.

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

[](#installation)

With composer:

```
composer require fballiano/openmage-load-javascripts-on-intent
```

With modman:

```
modman clone https://github.com/fballiano/openmage-load-javascripts-on-intent
```

Compatibility
-------------

[](#compatibility)

OpenMage v19, OpenMage v20, Magento 1.9+

Support
-------

[](#support)

If you have any issues with this extension, open an issue on GitHub.

Contribution
------------

[](#contribution)

Any contributions are highly appreciated. The best way to contribute code is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

Developer
---------

[](#developer)

Fabrizio Balliano

[@fballiano](https://twitter.com/fballiano)

Licence
-------

[](#licence)

[OSL - Open Software Licence 3.0](http://opensource.org/licenses/osl-3.0.php)

Copyright
---------

[](#copyright)

(c) Fabrizio Balliano

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 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 ~0 days

Total

3

Last Release

706d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/262e16fb4a6bbef60ac0fd0172f5586e2c24effcc80a2138e662fb0316083c4c?d=identicon)[fballiano](/maintainers/fballiano)

---

Top Contributors

[![fballiano](https://avatars.githubusercontent.com/u/909743?v=4)](https://github.com/fballiano "fballiano (5 commits)")

---

Tags

javascriptmagentomagento-extensionmagento-modulemagento-module-freeopenmageopenmage-extensionopenmage-modulepagespeedperformance

### Embed Badge

![Health badge](/badges/fballiano-openmage-load-javascripts-on-intent/health.svg)

```
[![Health](https://phpackages.com/badges/fballiano-openmage-load-javascripts-on-intent/health.svg)](https://phpackages.com/packages/fballiano-openmage-load-javascripts-on-intent)
```

###  Alternatives

[inviqa/magento-symfony-container

Provides Magento with an instance of a Symfony DI Container

2436.5k](/packages/inviqa-magento-symfony-container)[tim-reynolds/magento-qconfig

Magento config quick search

513.0k](/packages/tim-reynolds-magento-qconfig)[fastly/cdn

Fastly CDN module for Magento 1.x

275.5k](/packages/fastly-cdn)[clerk/magento

Clerk.io Turns More Browsers Into Buyers

1029.4k](/packages/clerk-magento)

PHPackages © 2026

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