Go Dark Go Light
Stand with Ukraine!  How can you help?

Magento 2 Defer JavaScript | Rocket JavaScript

Magento 2 Rocket JavaScript is a solution that allows you to defer JavaScript loading and speed up page rendering. It moves all JS code to the bottom of the page automatically (before tag end). This speeds up page load and increases page speed score.

Optimize the JS bundle, minimize its size and reduce loading and execution time. Deliver your pages faster for the utmost customer experience.

  • Define JavaScripts that need to be deferred
  • Exclude certain JS from deffering
  • Specify pages where JS shouldn’t deferred
  • Enable JavaScript bundling optimization
Special Price FREE Regular Price $99
one-time payment
Download Now Free Trial
Purchase as part of the Magento 2 Google Page Speed Optimizer.
FREE version available
Enable
Enable deferred JavaScript in Magento
Diable deferred JS for certain pages and scripts in Magento
Disable deferred JS for certain scripts
Live Demo
Compatibility:Magento 2.3.0 - 2.4.7-p3 (CE, EE, ECE, B2B)
Version:2.1.9

Don’t Let JS Slow Down Your Store

A lot of things load in the background when customers visit your website. JavaScript included. But not all JS is vital so it only delays the loading and increases the execution time.

Magento 2 Rocket JavaScript Extension fixes that.

Defer JS loading by moving all unnecessary JS to the bottom. Reduce the initial loading time and deliver your pages to customers faster!

enable js bundling magento
disallow pages from deferred javascript

Make Sure to Load Important JavaScript

When you defer the JavaScript loading you speed up a page rendering and define what JS to load later.

However, it doesn’t work for all pages. You might not want to defer JavaScript on the homepage or other CMS pages.

Exclude pages from the deferred JavaScript loading with the Magento 2 JavaScript Extension.

Make sure you load all vital JS and delay the loading of others.

Disable Deferred JS for Some Scripts

You should never rush to defer all JavaScript on your store since some of them might be initiated by an event, like GTM.

Keep all critical scripts at the top of the page using the Magento 2 Deferred JavaScript.

Just specify the JS strings to ignore and the extension will automatically add the data-rocketjavascript="false" attribute to all of them.

exclude scripts from deferred javasript
magento javascript extension

Enjoy Straightforward Setup

JavaScript configuration in Magento is never easy. It requires a lot of time and certain skills. But not with our JS extension for Magento.

All you need is just define the JavaScripts you’d like to defer on all pages of your website, and specify what pages to exclude.

We also provide a script that allows you to compile a list of used JavaScripts. So you know what to optimize with the deferred loading.

FAQ

Can I install your Magento 2 Rocket JavaScript module via the composer?

Yes, you can. All our modules can be installed via the composer. Once you purchase the extension, you receive keys to the private Magefan composer repository and find the composer installation commands available in the "My Downloads" section.

People Also Searched For
  • magento 2 defer javascript
  • magento javascript
  • magento defer parsing of javascript
  • magento js bundling
  • defer javascript magento 2
  • magento 2 defer js
  • magento js
  • defer js magento 2
  • magento 2 js bundling
  • magento 2 javascript
  • magento 2 defer parsing of javascript
Related Products
Magento 2 WebP Images
WebP Images
$159
one-time payment
(51)
Magento 2 Zero Downtime Deployment
Zero Downtime Deployment
$169
one-time payment
(15)
Magento 2 Image Lazy Load
Image Lazy Load
Special Price FREE Regular Price $79
one-time payment
(17)
Custom Magento Development
Custom Magento Development
$89
one-time payment
(24)
Magento 2 Conflict Detector
Conflict Detector
Special Price FREE Regular Price $79
one-time payment
(7)
Magento 2 Command Line Interface
Command Line Interface
Special Price FREE Regular Price $79
one-time payment
(18)
 
What our
clients say

This is a very good and error-free extension. We have integrated it into our system and are very satisfied. The team at Magefan is very professional and can help immediately if need be. Thanky for this fine plugin

By
Gor DMD Media
Brands Who Trust Us
Magento 2 Rocket JavaScript
Live Demo
^Top