PHPackages                             mage2kishan/module-performance-optimizer - 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. mage2kishan/module-performance-optimizer

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

mage2kishan/module-performance-optimizer
========================================

Frontend performance optimizations for Magento 2 — script deferral, font-display swap, CLS prevention, iframe lazy loading. Designed for Hyva and Luma storefronts.

1.0.3(1mo ago)125↓50%11proprietaryPHPPHP ~8.1.0||~8.2.0||~8.3.0||~8.4.0

Since Apr 14Pushed yesterdayCompare

[ Source](https://github.com/mage2sk/module-performance-optimizer)[ Packagist](https://packagist.org/packages/mage2kishan/module-performance-optimizer)[ Docs](https://kishansavaliya.com)[ RSS](/packages/mage2kishan-module-performance-optimizer/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (5)Versions (5)Used By (1)

Magento 2 Performance Optimizer — Core Web Vitals, Script Deferral, CLS Prevention | Panth Infotech
===================================================================================================

[](#magento-2-performance-optimizer--core-web-vitals-script-deferral-cls-prevention--panth-infotech)

[![Magento 2.4.4 - 2.4.8](https://camo.githubusercontent.com/079c832211eed4f9451ebe264e3865f825b0f9f31b041cbf03676c6e254535d4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4d6167656e746f2d322e342e342532302d2d253230322e342e382d6f72616e67653f6c6f676f3d6d6167656e746f266c6f676f436f6c6f723d7768697465)](https://magento.com)[![PHP 8.1 - 8.4](https://camo.githubusercontent.com/56b3cce18841623e2cbed2ebf09b06be1be8807e99e6e054a89d304ab4790b8e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048502d382e312532302d2d253230382e342d626c75653f6c6f676f3d706870266c6f676f436f6c6f723d7768697465)](https://php.net)![Hyva & Luma](https://camo.githubusercontent.com/76bb752a42ef0e68799ec1a1c13895d461fb6db53f86b2982e1bbae7e8240f4c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5468656d652d487976612532302532362532304c756d612d384235434636)![Core Web Vitals](https://camo.githubusercontent.com/b66de911a1e1eb5118c2ffdc8b374632b123a173914574aa9bca80da020ce148/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f436f7265253230576562253230566974616c732d4f7074696d697a65642d303043383533)[![Packagist](https://camo.githubusercontent.com/af3a3e2982a4f48f3c38a077eaa3da31c8710e93eb5c57d1cb18cd3c616d5180/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d6d616765326b697368616e2532466d6f64756c652d2d706572666f726d616e63652d2d6f7074696d697a65722d6f72616e67653f6c6f676f3d7061636b6167697374266c6f676f436f6c6f723d7768697465)](https://packagist.org/packages/mage2kishan/module-performance-optimizer)[![Upwork Top Rated Plus](https://camo.githubusercontent.com/6f72584179420c41ed90432fd2579a4ed36199d4229e8181d20f353c1c4ee4eb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5570776f726b2d546f702532305261746564253230506c75732d3134613830303f6c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/freelancers/~016dd1767321100e21)[![Panth Infotech Agency](https://camo.githubusercontent.com/401a792e990131002e91054d1b04494af5a2152fcc891ca000eb683786770abf/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4167656e63792d50616e7468253230496e666f746563682d3134613830303f6c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/agencies/1881421506131960778/)[![Get a Quote](https://camo.githubusercontent.com/0b6c02cc1ad00f11bf1b0164a9998734bd716473db36cc2a5c1517e3d3578d1b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4765742532306125323051756f74652d46726565253230457374696d6174652d444332363236)](https://kishansavaliya.com/get-quote)

> **Panth Performance Optimizer** is an admin-configurable Magento 2 extension that improves Core Web Vitals and page speed out of the box — **defer third-party scripts**, **font-display: swap**, **x-cloak CLS prevention**, **automatic image dimensions**, and **iframe lazy loading**. Every optimization is a toggle in the admin — no theme edits, no template changes, no code changes required. Works with both **Hyva** and **Luma** storefronts across Magento 2.4.4 - 2.4.8.

Slow storefronts lose customers. Google's Core Web Vitals (LCP, CLS, INP) directly affect SEO rankings and conversion rate. Panth Performance Optimizer bundles the five highest-impact frontend optimizations into a single lightweight module so you can ship measurable speed gains without touching a single template file. Enable the module, flip the toggles that match your stack, flush cache — that's it.

---

🚀 Need Custom Magento 2 Performance Work?
-----------------------------------------

[](#-need-custom-magento-2-performance-work)

> **Get a free Core Web Vitals audit + quote in 24 hours** — LCP, CLS, INP diagnostics, critical CSS, image pipeline, Hyva migration, caching strategy, and full page-speed tuning.

 [ ![Get a Free Quote](https://camo.githubusercontent.com/eac8c45d21cff8b139ddc392325f3bd6c8266a6f3d7b23f15131c958f3d3c8d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f476574253230612532304672656525323051756f74652532302545322538362539322d5265706c7925323077697468696e2532303234253230686f7572732d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/get-quote)

### 🏆 Kishan Savaliya

[](#-kishan-savaliya)

**Top Rated Plus on Upwork**

[![Hire on Upwork](https://camo.githubusercontent.com/b69353d3c6e192f4d03cc36bb8883612004e32f54dd2dbcc1e700dd791acd875/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652532306f6e2532305570776f726b2d546f702532305261746564253230506c75732d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/freelancers/~016dd1767321100e21)

100% Job Success • 10+ Years Magento Experience Adobe Certified • Hyva Specialist

### 🏢 Panth Infotech Agency

[](#-panth-infotech-agency)

**Magento Performance Team**

[![Visit Agency](https://camo.githubusercontent.com/bbf04bdd2aff502082508568ec42ace3a7475c98756f596e2013056c89726ed6/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56697369742532304167656e63792d50616e7468253230496e666f746563682d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465)](https://www.upwork.com/agencies/1881421506131960778/)

Core Web Vitals • Hyva Migration • Caching Critical CSS • Image Pipeline • CDN Tuning

**Visit our website:** [kishansavaliya.com](https://kishansavaliya.com) | **Get a quote:** [kishansavaliya.com/get-quote](https://kishansavaliya.com/get-quote)

---

Table of Contents
-----------------

[](#table-of-contents)

- [Why Performance Optimizer](#why-performance-optimizer)
- [Key Features](#key-features)
- [How Each Optimization Works](#how-each-optimization-works)
- [Compatibility](#compatibility)
- [Installation](#installation)
- [Configuration](#configuration)
- [Measuring Impact](#measuring-impact)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Support](#support)
- [About Panth Infotech](#about-panth-infotech)
- [Quick Links](#quick-links)

---

Why Performance Optimizer
-------------------------

[](#why-performance-optimizer)

Most Magento 2 stores suffer from the same five frontend performance problems:

1. **Render-blocking third-party scripts** — chat widgets, analytics, pixels, A/B testing tools load synchronously and freeze the main thread
2. **Flash of Invisible Text (FOIT)** — custom fonts block text rendering for hundreds of milliseconds
3. **Alpine x-cloak flash** — on Hyva themes, components render their raw template before Alpine hydrates
4. **Images without width/height** — the single biggest cause of Cumulative Layout Shift (CLS) in Magento storefronts
5. **Heavy iframes above/below the fold** — YouTube embeds, maps, and social widgets download megabytes before the user needs them

Panth Performance Optimizer fixes all five with zero template edits. Every fix is a single admin toggle. Every toggle is safe to disable.

---

Key Features
------------

[](#key-features)

### Defer Third-Party Scripts

[](#defer-third-party-scripts)

- Automatically adds `defer` to every `` loaded from a domain other than your storefront
- **Excluded Domains** list lets you whitelist payment gateways or scripts that require synchronous execution
- Uses a `MutationObserver` to catch scripts added dynamically after page load
- Reduces Total Blocking Time (TBT) and improves INP

### Font-Display: swap

[](#font-display-swap)

- Injects a global `@font-face { font-display: swap !important }` rule
- Eliminates FOIT across every custom font on every page
- Improves LCP by letting browsers paint text with fallback fonts immediately

### x-cloak CLS Prevention

[](#x-cloak-cls-prevention)

- Injects `[x-cloak]{display:none!important}` into `` early in the critical path
- Prevents raw Alpine.js template markup from flashing before hydration
- **Essential for Hyva storefronts** — a single toggle that every Hyva store should enable

### Automatic Image Dimensions

[](#automatic-image-dimensions)

- Client-side script sets missing `width`/`height` attributes on `` tags
- Reads `naturalWidth` / `naturalHeight` immediately for loaded images, attaches `load` listener for the rest
- Reduces CLS without requiring any template edits

### Iframe Lazy Loading

[](#iframe-lazy-loading)

- Below-the-fold iframes have their `src` swapped to `data-lazy-src` on `DOMContentLoaded`
- `IntersectionObserver` with a 200px root margin restores the `src` just before the iframe enters the viewport
- Saves megabytes of YouTube, Maps, and social widget payload on initial page load

### Admin-Friendly

[](#admin-friendly)

- **Every optimization is a checkbox** in `Stores → Configuration → Panth Extensions → Performance Optimizer`
- No theme edits, no template overrides, no layout XML required
- Safe to toggle individually — disable any single optimization without affecting the others
- Fully translatable via standard Magento `__()` strings

### MEQP Compliant

[](#meqp-compliant)

- Passes Adobe's Magento Extension Quality Program
- Zero severity-10 violations
- Uses only Magento framework classes — no third-party dependencies

---

How Each Optimization Works
---------------------------

[](#how-each-optimization-works)

### 1. Script deferral

[](#1-script-deferral)

A `MutationObserver` watches the DOM for new `` nodes. If the `src` attribute points to a domain that is not your storefront's hostname and is not in the **Excluded Domains** list, `defer = true` is applied. Existing third-party scripts are also patched on `DOMContentLoaded`.

### 2. font-display: swap

[](#2-font-display-swap)

A `` block is injected early in the page containing `@font-face { font-display: swap !important }`. Every CSS-loaded font on the page now shows a fallback immediately and swaps in the custom face once it finishes downloading.

### 3. x-cloak style

[](#3-x-cloak-style)

Alpine.js marks hidden-until-ready elements with `x-cloak`. Without a matching CSS rule those elements briefly flash their raw template markup. Performance Optimizer injects the CSS rule early enough that it takes effect before Alpine initializes.

### 4. Image dimensions

[](#4-image-dimensions)

After the page loads, a script scans every `` element without explicit `width`/`height` attributes. For already-loaded images it reads `naturalWidth` / `naturalHeight` and sets both attributes synchronously; for images still loading it attaches a `load` listener and fills them in when the image resolves.

### 5. Iframe lazy loading

[](#5-iframe-lazy-loading)

On `DOMContentLoaded`, every `` whose bounding rect sits below the viewport has its `src` moved to `data-lazy-src`. An `IntersectionObserver` with a 200px root margin restores the `src` as soon as the iframe comes within scroll range.

---

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

[](#compatibility)

RequirementVersions SupportedMagento Open Source2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8Adobe Commerce2.4.4, 2.4.5, 2.4.6, 2.4.7, 2.4.8Adobe Commerce Cloud2.4.4 — 2.4.8PHP8.1.x, 8.2.x, 8.3.x, 8.4.xHyva Theme1.0+ (fully supported, recommended)Luma ThemeNative supportRequired Dependency`mage2kishan/module-core` (free)Tested on:

- Magento 2.4.8-p4 with PHP 8.4 on Hyva 1.3
- Magento 2.4.7 with PHP 8.3 on Luma
- Magento 2.4.6 with PHP 8.2 on Hyva 1.2

---

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

[](#installation)

### Composer Installation (Recommended)

[](#composer-installation-recommended)

```
composer require mage2kishan/module-performance-optimizer
bin/magento module:enable Panth_Core Panth_PerformanceOptimizer
bin/magento setup:upgrade
bin/magento setup:di:compile
bin/magento setup:static-content:deploy -f
bin/magento cache:flush
```

### Manual Installation via ZIP

[](#manual-installation-via-zip)

1. Download the latest release ZIP from [Packagist](https://packagist.org/packages/mage2kishan/module-performance-optimizer) or the [Adobe Commerce Marketplace](https://commercemarketplace.adobe.com)
2. Extract to `app/code/Panth/PerformanceOptimizer/`
3. Ensure `Panth_Core` is also installed (required dependency)
4. Run the same commands as above starting from `bin/magento module:enable`

### Verify Installation

[](#verify-installation)

```
bin/magento module:status Panth_PerformanceOptimizer
# Expected output: Module is enabled
```

Then navigate to:

```
Admin → Stores → Configuration → Panth Extensions → Performance Optimizer

```

---

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

[](#configuration)

All settings live at **Stores → Configuration → Panth Extensions → Performance Optimizer**.

### General Settings

[](#general-settings)

SettingDefaultDescriptionEnable Performance OptimizerYesMaster toggle. When disabled, no optimizations are injected into the frontend.### Script Optimization

[](#script-optimization)

SettingDefaultDescriptionDefer Third-Party ScriptsYesAutomatically adds the `defer` attribute to third-party `` tags.Excluded Domains(empty)One domain per line. Scripts loaded from these domains will not be deferred. Useful for payment gateways.### Font Optimization

[](#font-optimization)

SettingDefaultDescriptionAdd font-display: swapYesInjects a global CSS rule that forces `font-display: swap` on all `@font-face` declarations.### Layout Stability (CLS Prevention)

[](#layout-stability-cls-prevention)

SettingDefaultDescriptionAdd x-cloak StyleYesInjects `[x-cloak]{display:none!important}` into the page head. Essential for Hyva storefronts.Set Image DimensionsYesClient-side script adds `width` and `height` to images missing them.### Iframe Lazy Loading

[](#iframe-lazy-loading-1)

SettingDefaultDescriptionEnable Iframe Lazy LoadingYesDefers loading of below-the-fold iframes using `IntersectionObserver`.After changing any setting, flush the full-page cache:

```
bin/magento cache:flush
```

---

Measuring Impact
----------------

[](#measuring-impact)

We recommend benchmarking before and after enabling the module using:

- **Google PageSpeed Insights** — [pagespeed.web.dev](https://pagespeed.web.dev)
- **Chrome DevTools → Lighthouse** — run against the homepage, category, product, and cart pages
- **Chrome DevTools → Performance** panel — record a page load and check Total Blocking Time, LCP, CLS
- **Web Vitals Chrome extension** — real-time LCP/CLS/INP overlay while browsing

Typical gains on a default Luma storefront with several third-party scripts:

- **LCP**: 0.3–0.8s improvement (font-display + script deferral)
- **CLS**: 0.05–0.15 improvement (image dimensions + x-cloak)
- **TBT / INP**: 100–400ms improvement (script deferral + iframe lazy loading)

Actual numbers vary by theme, hosting, third-party stack, and CDN configuration.

---

Troubleshooting
---------------

[](#troubleshooting)

IssueCauseResolutionNo optimizations visible on frontendModule disabled or full-page cache staleEnable in Core Settings, then run `bin/magento cache:flush`Third-party script stops working after deferralScript requires synchronous executionAdd the script's domain to **Excluded Domains**Fonts still flash invisibleFont loaded via JavaScript, not CSSThe `font-display` descriptor only applies to CSS-loaded fontsImages still cause CLS above the foldImages load before the client-side script runsFor critical above-the-fold images, add `width`/`height` directly in templatesIframe never loadsIframe was marked lazy but `IntersectionObserver` never firesVerify the iframe is actually scrollable into view; disable iframe lazy loading if your layout keeps iframes in a hidden containerAdmin section missingACL not refreshed or `Panth_Core` not installedInstall `mage2kishan/module-core`, log out and back in to admin---

FAQ
---

[](#faq)

### Do I need to edit any templates?

[](#do-i-need-to-edit-any-templates)

No. Every optimization is admin-configurable and injected automatically. This is the whole point of the module — ship measurable speed gains without code changes.

### Will this break my payment gateway or chat widget?

[](#will-this-break-my-payment-gateway-or-chat-widget)

No, as long as you add the domain to the **Excluded Domains** list. Scripts from excluded domains are left untouched. Default behaviour is to defer all third-party scripts, which is safe for the overwhelming majority of use cases.

### Does this work on Hyva?

[](#does-this-work-on-hyva)

Yes, and Hyva is where the `x-cloak` optimization really shines. Every Hyva store should enable this module.

### Does this replace my CDN or caching?

[](#does-this-replace-my-cdn-or-caching)

No. Performance Optimizer complements CDN and full-page cache — it focuses on frontend render-path optimizations that CDN/cache cannot fix.

### Can I disable individual optimizations?

[](#can-i-disable-individual-optimizations)

Yes. Every optimization is a separate toggle. Disabling one does not affect the others.

### Is this compatible with Google Analytics / GTM / Facebook Pixel?

[](#is-this-compatible-with-google-analytics--gtm--facebook-pixel)

Yes. These scripts tolerate `defer` gracefully. If you see any issue, add the domain (e.g. `googletagmanager.com`) to Excluded Domains.

### Does it support multi-store setups?

[](#does-it-support-multi-store-setups)

Yes. All settings respect Magento's scope hierarchy (default → website → store view).

### Will it impact SEO?

[](#will-it-impact-seo)

Positively. Core Web Vitals are a confirmed Google ranking factor. Improvements to LCP, CLS, and INP directly improve search rankings.

### Is the source code available?

[](#is-the-source-code-available)

Yes — on GitHub at [github.com/mage2sk/module-performance-optimizer](https://github.com/mage2sk/module-performance-optimizer).

---

Support
-------

[](#support)

ChannelContactEmailWebsite[kishansavaliya.com](https://kishansavaliya.com)WhatsApp+91 84012 70422GitHub Issues[github.com/mage2sk/module-performance-optimizer/issues](https://github.com/mage2sk/module-performance-optimizer/issues)Upwork (Top Rated Plus)[Hire Kishan Savaliya](https://www.upwork.com/freelancers/~016dd1767321100e21)Upwork Agency[Panth Infotech](https://www.upwork.com/agencies/1881421506131960778/)Response time: 1-2 business days.

### 💼 Need Custom Magento Performance Work?

[](#-need-custom-magento-performance-work)

Looking for **Core Web Vitals consulting**, **critical CSS extraction**, **Hyva migration**, **image pipeline tuning**, or **full Lighthouse-100 projects**? Get a free quote in 24 hours:

 [ ![Get a Free Quote](https://camo.githubusercontent.com/0d9512dc4f89ef40179e9f650fd0786b6bc846d289ab2cb04a223a43f2833eeb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f254630253946253932254143253230476574253230612532304672656525323051756f74652d6b697368616e736176616c6979612e636f6d2532466765742d2d71756f74652d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/get-quote)

 [ ![Hire on Upwork](https://camo.githubusercontent.com/fad56e8be7896e39593f090cd2ed32e6bf86b4b6e75974cf292aee99d45f5077/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f486972652532304b697368616e2d546f702532305261746564253230506c75732d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465) ](https://www.upwork.com/freelancers/~016dd1767321100e21) [ ![Visit Agency](https://camo.githubusercontent.com/fdf45a9d937d72b896f5e2557337d47efebc0e06b7ad4d4c162c0a64375a62fa/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f56697369742d50616e7468253230496e666f746563682532304167656e63792d3134613830303f7374796c653d666f722d7468652d6261646765266c6f676f3d7570776f726b266c6f676f436f6c6f723d7768697465) ](https://www.upwork.com/agencies/1881421506131960778/) [ ![Visit Website](https://camo.githubusercontent.com/7455559317a374eb3eb536c5ea201ca2c2a29bc13d82cc127278975a680d552c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5669736974253230576562736974652d6b697368616e736176616c6979612e636f6d2d3044393438383f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com)

---

License
-------

[](#license)

Panth Performance Optimizer is distributed under a proprietary license — see `LICENSE.txt`.

---

About Panth Infotech
--------------------

[](#about-panth-infotech)

Built and maintained by **Kishan Savaliya** — [kishansavaliya.com](https://kishansavaliya.com) — a **Top Rated Plus** Magento developer on Upwork with 10+ years of eCommerce performance experience.

**Panth Infotech** is a Magento 2 development agency specializing in high-performance storefronts, Hyva migrations, and Core Web Vitals projects. Our extension suite covers SEO, performance, checkout, product presentation, customer engagement, and store management — over 34 modules built to MEQP standards and tested across Magento 2.4.4 to 2.4.8.

Browse the full extension catalog on the [Adobe Commerce Marketplace](https://commercemarketplace.adobe.com) or [Packagist](https://packagist.org/packages/mage2kishan/).

---

Quick Links
-----------

[](#quick-links)

- 🌐 **Website:** [kishansavaliya.com](https://kishansavaliya.com)
- 💬 **Get a Quote:** [kishansavaliya.com/get-quote](https://kishansavaliya.com/get-quote)
- 👨‍💻 **Upwork Profile (Top Rated Plus):** [upwork.com/freelancers/~016dd1767321100e21](https://www.upwork.com/freelancers/~016dd1767321100e21)
- 🏢 **Upwork Agency:** [upwork.com/agencies/1881421506131960778](https://www.upwork.com/agencies/1881421506131960778/)
- 📦 **Packagist:** [packagist.org/packages/mage2kishan/module-performance-optimizer](https://packagist.org/packages/mage2kishan/module-performance-optimizer)
- 🐙 **GitHub:** [github.com/mage2sk/module-performance-optimizer](https://github.com/mage2sk/module-performance-optimizer)
- 🛒 **Adobe Marketplace:** [commercemarketplace.adobe.com](https://commercemarketplace.adobe.com)
- 📧 **Email:**
- 📱 **WhatsApp:** +91 84012 70422

---

 **Ready to hit Lighthouse 90+ on your Magento 2 store?**
 [ ![Get Started](https://camo.githubusercontent.com/66dee04430af977df988ac18454416f2f08a5169868a0d0689061b7e8db6f8ca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f254630253946253941253830253230476574253230537461727465642532302545322538362539322d4672656525323051756f7465253230696e2532303234682d4443323632363f7374796c653d666f722d7468652d6261646765) ](https://kishansavaliya.com/get-quote)

---

**SEO Keywords:** magento 2 performance, magento 2 page speed, magento 2 core web vitals, magento 2 defer scripts, magento 2 defer third-party scripts, magento 2 font display swap, magento 2 cls prevention, magento 2 cumulative layout shift fix, magento 2 lazy loading iframes, magento 2 iframe lazy load, magento 2 image dimensions, magento 2 x-cloak hyva, magento 2 alpine cloak, magento 2 lighthouse optimization, magento 2 lcp optimization, magento 2 inp optimization, magento 2 tbt reduction, magento 2 render blocking scripts, magento 2 performance module, magento 2 speed optimization extension, hyva performance optimizer, luma performance optimizer, panth performance optimizer, magento 2 page speed insights, magento 2 seo core web vitals, magento 2.4.8 performance, php 8.4 magento performance, hire magento performance developer, top rated plus magento freelancer, kishan savaliya magento, panth infotech magento, mage2kishan, mage2sk, magento 2 hyva performance optimization, magento 2 luma performance tuning, magento 2 critical css, magento 2 frontend optimization, magento 2 lighthouse 100

###  Health Score

45

—

FairBetter than 91% of packages

Maintenance97

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community9

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

Total

4

Last Release

32d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/343e344aa298f189db888b32d62f9202d31ced1a5ea23411850a63dc4a30299c?d=identicon)[kishansavaliya](/maintainers/kishansavaliya)

---

Top Contributors

[![KishanSavaliya](https://avatars.githubusercontent.com/u/16853223?v=4)](https://github.com/KishanSavaliya "KishanSavaliya (8 commits)")

---

Tags

lazy loadingperformanceoptimizationmagento2magento2 modulecore-web-vitalsclspanthfont-display

### Embed Badge

![Health badge](/badges/mage2kishan-module-performance-optimizer/health.svg)

```
[![Health](https://phpackages.com/badges/mage2kishan-module-performance-optimizer/health.svg)](https://phpackages.com/packages/mage2kishan-module-performance-optimizer)
```

###  Alternatives

[run-as-root/magento2-prometheus-exporter

Magento2 Prometheus Exporter

68353.9k](/packages/run-as-root-magento2-prometheus-exporter)[loki/magento2-components

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

1010.0k22](/packages/loki-magento2-components)[mollie/magento2

Mollie Payment Module for Magento 2

1131.8M12](/packages/mollie-magento2)

PHPackages © 2026

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