PHPackages                             hawksama/magento-2-performance-optimization - 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. hawksama/magento-2-performance-optimization

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

hawksama/magento-2-performance-optimization
===========================================

Loads the CSS using RequireJS. This helps to speed up the website by loading CSS using requireJS asynchronously. Production mode required.

v1.0.6(3y ago)65702GPL-3.0PHPPHP &gt;=7.3.0

Since Sep 1Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Hawksama/magento-2-performance-optimization)[ Packagist](https://packagist.org/packages/hawksama/magento-2-performance-optimization)[ RSS](/packages/hawksama-magento-2-performance-optimization/feed)WikiDiscussions master Synced 3w ago

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

Google Page Speed Performance Optimization
==========================================

[](#google-page-speed-performance-optimization)

```
``hawksama/magento-2-performance-optimization``

```

- [Main Functionalities](#markdown-header-main-functionalities)
- [Installation](#markdown-header-installation)
- [Configuration](#markdown-header-configuration)
- [Specifications](#markdown-header-specifications)
- [Support](#markdown-header-support)

Main Functionalities
--------------------

[](#main-functionalities)

Google Page Speed optimizer.

### Main features

[](#main-features)

- Eliminates render-blocking CSS files by asynchronously loading CSS using RequireJS.
- Minifies the HTML without affecting KnockoutJs, RequireJs, jQuery or VanillaJs.
- Moves all script tags with either the `src` attribute or inline scripts that are loaded in the source page at the bottom of the page before closing `` with the ability to skip some pages or controllers.
- Adds custom `critical.css` file to improve `First Contentful Paint` score. Extends the Magento 2.3.3 functionality CSS critical path to be compatible with the new CSS asynchronously mode.

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

[](#installation)

\* = in production please use the `--keep-generated` option

### Type 1: Zip file

[](#type-1-zip-file)

- Unzip the zip file in `app/code/Hawksama`
- Enable the module by running `php bin/magento module:enable Hawksama_PerformanceOptimization`
- Apply database updates by running `php bin/magento setup:upgrade`\*
- Flush the cache by running `php bin/magento cache:flush`

### Type 2: Composer

[](#type-2-composer)

- Install the module composer by running `composer require hawksama/magento-2-performance-optimization`
- enable and apply database updates by running `php bin/magento setup:upgrade`\*
- compile the module by running `php bin/magento setup:di:compile`
- Flush the cache by running `php bin/magento cache:flush`

How to upgrade
--------------

[](#how-to-upgrade)

- Update the module composer by running `composer update hawksama/magento-2-performance-optimization`
- apply database updates by running `php bin/magento setup:upgrade`\*
- compile the module by running `php bin/magento setup:di:compile`
- Flush the cache by running `php bin/magento cache:flush`

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

[](#configuration)

Module enabled by default. CSS critical path recommended.

- Enabled (hawksama\_performanceoptimization/general/enabled)
- Minify Html (hawksama\_performanceoptimization/general/minify\_html)
- RequireJS CSS (hawksama\_performanceoptimization/general/requirejs\_css)
- MoveJS to bottom Enabled (hawksama\_performanceoptimization/movejs/enabled)
- MoveJS to bottom Exclude Controllers (hawksama\_performanceoptimization/movejs/home\_page)
- MoveJS to bottom Exclude Paths (hawksama\_performanceoptimization/movejs/controller)
- Stores &gt; Settings &gt; Configuration &gt; HAWKSAMA -&gt; Performance Optimization

### Activate CSS critical path

[](#activate-css-critical-path)

- To enable it run `php bin/magento config:set 'dev/css/use_css_critical_path' 1;`

Specifications
--------------

[](#specifications)

- Helper

    - Hawksama\\PerformanceOptimization\\Helper\\Data
- Plugin

    - beforeSendResponse - Magento\\Framework\\App\\Response\\Http &gt; Hawksama\\PerformanceOptimization\\Plugin\\Frontend\\Magento\\Framework\\App\\Response\\Http
- Observer

    - controller\_front\_send\_response\_before &gt; Hawksama\\PerformanceOptimization\\Observer\\Frontend\\Controller\\FrontSendResponseBefore
- Block

    - Magento\\Config\\Block\\System\\Config\\Form\\Field\\FieldArray\\AbstractFieldArray

Support
-------

[](#support)

-

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity50

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

Recently: every ~135 days

Total

6

Last Release

1224d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5d9b3bcbbbebb62b1f53afd772f4a81d02a77e969b0acc23e565a28f64445c8?d=identicon)[hawksama](/maintainers/hawksama)

---

Top Contributors

[![Hawksama](https://avatars.githubusercontent.com/u/46504593?v=4)](https://github.com/Hawksama "Hawksama (19 commits)")

---

Tags

magento 2Performance Optimizationspeed optimizationAlexandru Manuel CarabusGoogle SpeedLoading SpeedLoading OptimizerSpeed Optimizer

### Embed Badge

![Health badge](/badges/hawksama-magento-2-performance-optimization/health.svg)

```
[![Health](https://phpackages.com/badges/hawksama-magento-2-performance-optimization/health.svg)](https://phpackages.com/packages/hawksama-magento-2-performance-optimization)
```

###  Alternatives

[magepal/magento2-googletagmanager

Google Tag Manager (GTM) for Magento 2 with Advance Data Layer

2691.6M5](/packages/magepal-magento2-googletagmanager)[tig/postnl-magento2

TIG Magento 2 PostNL extension

59570.5k5](/packages/tig-postnl-magento2)[magepal/magento2-reindex

Reindex your Magento2 store quickly and easily from backend/admin, instead of command line.

111705.0k1](/packages/magepal-magento2-reindex)[magepal/magento2-preview-checkout-success-page

Quickly and easily preview and test your Magento2 checkout success page, without placing a new order each time

7893.9k](/packages/magepal-magento2-preview-checkout-success-page)[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)[magepal/magento2-cataloglazyload

Improve the load time of your Magento 2 categories pages by loading your images on demand with our Lazy Load Extension

5764.7k](/packages/magepal-magento2-cataloglazyload)

PHPackages © 2026

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