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

ActiveMagento2-module

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)65693GPL-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 today

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 49% 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

1171d 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-gmailsmtpapp

Magento 2 SMTP Extension - Configure Magento 2 to send all transactional email using Gmail, G Suite, Amazon SES, Office360, Mailgun, SendGrid, Mandrill or any other SMTP servers

3321.8M2](/packages/magepal-magento2-gmailsmtpapp)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[magepal/magento2-googletagmanager

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

2671.5M4](/packages/magepal-magento2-googletagmanager)[yireo/magento2-webp2

Magento 2 module to add WebP support to the Magento frontend

2091.2M7](/packages/yireo-magento2-webp2)[justbetter/magento2-sentry

Magento 2 Logger for Sentry

1851.5M3](/packages/justbetter-magento2-sentry)[tig/postnl-magento2

TIG Magento 2 PostNL extension

58544.2k4](/packages/tig-postnl-magento2)

PHPackages © 2026

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