Stand with Ukraine! How can you help?
Find out more

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
Regular Price $99 Special Price $0
one-time payment
Download Now
Purchase as part of the Magento 2 Google Page Speed Optimizer.
FREE version available
Magento 2 JS bundling
Enable deferred JavaScript in Magento
Diable deferred JS for certain pages and scripts in Magento
Disable deferred JS for certain scripts
Live DemoLive Demo
Compatibility:Magento 2.3.0 - 2.4.8 (CE, EE, ECE, B2B)
Version:2.2.1

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.

The most common questions about the Magento 2 Defer JavaScript Extension

Can I install your Rocket JavaScript module via the composer?
collapsible icon
Yes, all our modules can be installed via the composer. Once you purchase the extension, you receive keys to the private Magefan composer repository. The composer installation commands are available in your account ("My Downloads" section).
Do you offer installation for this extension?
collapsible icon
Each Magefan extension comes with the extension files and installation guides. The installation service is not included in the extension price. You can purchase it separately.
Does this extension come with free support and updates?
collapsible icon
After you purchase the extension, you get 365 days of free updates and free support. You also keep the source code of the latest version released during these 365 days.

Yet, if you'd still like to update after 365 days pass, you can renew access to updates and support for 50% of the extension's price. Find more in our license agreement.

Do you offer any discounts?
collapsible icon
If no sale is running currently, you can get a discount by subscribing to our newsletter or leaving a review for any of the extensions you already use.
How many websites can I use Magefan extensions on?
collapsible icon
According to our license agreement you can use one extension license on one live Magento instance and multiple stage, dev and test instances.

This means the extension will work on all websites within one Magento admin panel. At the same time, you don’t need a license key to use the extension on stage, dev or test websites.

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

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
 
What our clients say
Magento 2 Rocket JavaScript
Live Demo
Top