Theme
Go Dark Go Light
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 FREE
one-time payment
Download Now Free Trial
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 Demo
Compatibility:Magento 2.3.0 - 2.4.7-p3 (CE, EE, ECE, B2B)
Version:2.2.0

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.

FAQs
Can I install your Rocket JavaScript module via the composer?
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?
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?
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 a free trial for Magento 2 Cookie Consent?
Yes, you can request a free trial for this extension by filling out the free trial form. If you comply with all the free trial requirements, we’ll issue a trial for 14 days.
Do you offer any discounts?
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?
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

I am very pleased with the Google PSI results after using this module. It's a treasure for a non-techie like me. Thanks for the Magefan team for setting this up for me

By Jürgen Fuchs
 
What our clients say
Brands Who Trust Us
Magento 2 Rocket JavaScript
Live Demo
Top