magefan / module-rocketjavascript
magefan/module-rocketjavascript
Move all javascript to the footer on Magento 2 store.
Magento 2 Rocket JavaScript Extension by Magefan
Magento2 Footer JavaScript
Magento2 Deferred JavaScript
Magento2 Optimized Bundle JavaScript
Configuration
- To enable or disable extension please navigate to Magento 2 Admin Panel > Stores > Magefan Extensions > Rocket JavaScript
Requirements
- Magento Community Edition 2.1.x-2.4.x or Magento Enterprise Edition 2.1.x-2.4.x
Installation
Get List Of Used JS On A Single Page
/* Use in browser console */
globalSrc = '';
jQuery('script').each(function(){
if (!jQuery(this).attr('src')) return;
var src = jQuery(this).attr('src');
if (src.indexOf(require.toUrl('')) != -1 && src.indexOf('Magefan_LazyLoad') == -1) {
var src = (src.replace(require.toUrl(''), ''));
globalSrc += "\n" + src;
}
})
console.log(globalSrc);
Demo
Try out our open demo and if you like our extension please give us some star on Github ★
| Storefront Demo | Admin Panel Demo |
|
|
| view | view |
Support
If you have any issues, please contact us
then if you still need help, open a bug report in GitHub's
issue tracker.
Please do not use Magento Marketplace's Reviews or (especially) the Q&A for support.
There isn't a way for us to reply to reviews and the Q&A moderation is very slow.
License
The code is licensed under Open Software License ("OSL") v. 3.0.
Magento Extensions by Magefan
Magento 2 SEO Extensions
- Magento SEO
- Magento 2 Rich Snippets
- Magento 2 HTML Sitemap
- Magento 2 XML Sitemap
- Magento 2 Twitter Cards
- Magento Open Graph Tags
Magento 2 Google Extensions
- Magento Google Tag Manager
- Magento 2 Google Analytics 4
- Magento Google Shopping Feed
- Magento Google Customer Reviews
- Magento 2 Google Indexing
Magento Speed Optimisation Extensions
- Magento 2 Google Page Speed Optimizer
- Magento 2 WebP Images
- Magento Full Page Cache Extension
- Magento 2 Lazy Load Images
Magento Admin Extensions
- Magento 2 Dynamic Category
- Magento 2 Size Chart
- Magento 2 Security Extension
- Magento 2 Admin Action Log
- Magento Extended Product Grid
- Magento 2 Product Tabs
- Magento 2 Product Widget
- Magento 2 Email Attachments
- Magento 2 Admin View
- Magento 2 Email Notifications
- Magento 2 Login As Customer
Magento Order Management Extensions
Magento 2 Blog Extensions
Magento Marketing Extensions
- Magento 2 Facebook Pixel
- Magento TikTok Pixel
- Magento 2 Dynamic Blocks and Pages
- Magento 2 Cookie Consent
- Magento 2 Base Price
- Magento 2 Price History
- Magento 2 Mautic Extension
- Magento 2 YouTube Video
Magento Promotions Extensions
Magento 2 Multi-Language Extensions
- Magento 2 Hreflang Tags
- Magento 2 Currency Switcher
- Magento 2 Language Switcher
- Magento 2 Store Switcher
- Magento 2 Translation Extension
Developers Tools
- Magento Zero Downtime Deployment
- Magento 2 Cron Schedule
- Magento 2 CLI Extension
- Magento 2 Conflict Detector
Shopify Apps by Magefan
- Shopify Login As Customer
- Shopify Blog
- Shopify Size Chart
- Shopify Google Indexer
- Shopify Product Feeds
- Shopify Server GTM & GA4
Magento 2 Services by Magefan
No changelog yet
The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.
| Version | Stability | QA Status | Compatibility | Released |
|---|---|---|---|---|
| 2.2.3 | stable | Fail | Magento 2.4.7-2.4.9 Details | 2026-03-23 17:06:37 |
| 2.2.2 | stable | Not tested | Not yet tested Details | 2025-05-08 12:38:54 |
| 2.2.1 | stable | Not tested | Not yet tested Details | 2025-03-20 10:36:26 |
| 2.2.0 | stable | Not tested | Not yet tested Details | 2024-11-18 14:33:35 |
| 2.1.9 | stable | Not tested | Not yet tested Details | 2023-11-23 08:06:29 |
| 2.1.8 | stable | Not tested | Not yet tested Details | 2023-06-09 10:21:17 |
| 2.1.7 | stable | Not tested | Not yet tested Details | 2023-05-02 11:01:25 |
| 2.1.6 | stable | Not tested | Not yet tested Details | 2020-08-27 10:08:19 |
| 2.1.5 | stable | Not tested | Not yet tested Details | 2020-05-26 10:57:31 |
| 2.1.4 | stable | Not tested | Not yet tested Details | 2020-01-13 14:33:20 |
| 2.1.3 | stable | Not tested | Not yet tested Details | 2018-10-09 08:59:41 |
| 2.1.2 | stable | Not tested | Not yet tested Details | 2018-10-05 04:12:51 |
| 2.1.1 | stable | Not tested | Not yet tested Details | 2018-10-04 12:40:02 |
| 2.1.0 | stable | Not tested | Not yet tested Details | 2018-04-16 18:51:13 |
| 2.0.0 | stable | Not tested | Not yet tested Details | 2017-08-12 16:02:17 |
Requires 1
| Package | Constraint |
|---|---|
| magefan/module-community | >=2.3.4 |
Suggests 2
| Package | Reason |
|---|---|
| magefan/module-webp | Install WebP Optimized Images to serve images in the next-gen format. Use coupon code COMPOSER-FAN to get 10% discount on magefan.com. |
| magefan/module-lazyload | Install Lazy Load to defer offscreen images loading. |
Compatibility
Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.
Code Quality
Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge. A phpcs finding can't make a module incompatible.
Static analysis
Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.
| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 17 | 17 warnings (ruleset: Magento2) |
| PHPMD | Warning | 8 | 8 rule violations (CyclomaticComplexity:2, NPathComplexity:2, UndefinedVariable:2, UnusedFormalParameter:2) |
| Cpd | Pass | 0 | |
| Composer validate | Info | 3 | valid; 3 advisory notes (composer validate --strict) |
PHPStan
Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases.
Tests
Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.
Unit tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Integration tests
| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | ||
| 2.4.8 | N/A | N/A | ||
| 2.4.9 | N/A | N/A |
Security
Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.
More from magefan
View vendorImplements Blog functionality on Magento 2 store
Magefan_PluginSortOrderExample
Turn an existing module into recurring revenue.
If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.

