Free Installation
Free 1-Year Support
Free Update
30-Day Money Back

Defer JavaScript for Magento 2

Magento 2 Defer JavaScript Extension by BSSCommerce improves Magento store performance by automatically deferring your JavaScript loading. Effectively reduce loading time and engage more customers to enhance sales amount.
  • Instantly and automatically defer parsing of Javascript
  • Defer Javascript till the last moment
  • Defer Iframes loading effectively
  • Magically improve pagespeed score!
  • Check Tutorial Blog

Check out Google AMP for Magento 2 - the hottest mobile optimization trend from Google!

Community: 2.0.x - 2.1.x - 2.2.5
      |      Enterprise: 2.0.x - 2.1.x - 2.2.5

* Required Fields

Free Installation
Free 1-Year Support
$75 $50

Magento 2 Defer JavaScript Extension by BSSCommerce automatically puts JavaScript files to the end of the page after loading all HTML and CSS.

We also provide Magento 2 Lazy Load Extension that can allow Magento sites to load images as scrolls to reduce loading time: Check it out HERE! 

Key Features of Defer JavaScript for Magento 2

Magento 2 Defer JavaScript Extension by BSSCommerce will never disappoint you with special features: 

  • Powerfully defer parsing of JavaScript for Magento 2 websites

magento 2 defer javascript extension - page speed after installing

Oftentimes, JavaScript (JS) is in between <head></head> and <body></body>. Moreover, a website is loaded from top to bottom. If you have a lot of JavaScript code or a long string of code there, it takes very long before the web content appears because it needs to wait until all JavaScript codes are finished.

magento 2 defer javascript extension - page speed before installing

The extension powerfully optimizes customers’ experience by deferring the parsing of JavaScript until it is needed on your Magento 2 based website. It reduces the number of bytes required to speed up the content of the page to load the initial state of the page. Moreover, it permits remaining bytes to be loaded asynchronously in the background.

  • Defer Iframes loading effectively

Defer Iframes loading means that the browser will finish loading you website before loading Iframes of other sites that are embed on your webpage. The reason is that when these sites are embed on your site, the browser will load JavaScript files of these pages, which can slow down your webpage. 

  • Easily configure from admin panel

With a few clicks, you can get this extension work on your online store for better speed performance. Just as easy like a piece of cake, you can optimize your Magento 2 webpage speed within half a second by only a few clicks. The easy and familiar features with Magento basis save your effort and time to get used to with it.

magento 2 defer javascript extension

  • Cleverly developed on the Magento 2 Platform

The Magento 2 Defer JavaScript by BSSCommerce possesses all excellent features from the Magento 1 version. After thorough tests by BSSCommerce Certified Developers, the extension takes pride not to conflict with any existing functions on the Magento 2 Platform. The extension is especially well compatible with Magento version 2.x.

Why is Magento 2 Defer JavaScript Extension by BSSCommerce your must-have extension?

40% of people abandon a website that takes more than 3 seconds to load. A tick of delay can cost you a potential customer. Forever!

You understand the importance of website loading time, but your Magento 2 web-based cannot meet your requirement.Defer Parsing JavaScript for Magento 2 deserves for being an essential part of your Magento 2 site.

Magento 2 Defer JavaScript by BSSCommerce, inheriting from the outstanding features of Defer JavaScript for Magento version 1, now is totally developed on the Magento 2 platform. The extension especially expresses its brilliant features on the Magento version 2.0.

  • Dramatically improve your Magento site performance

The fact that scripts must be downloaded, parsed, and executed before the browser can begin to render a web page causes much time-delay on loading the main page. In the world of online e-commerce, inefficiency costs money. Even one second delay in your site response time can turn a target customer to a loyal customer or let them simply leave your site to the competitor’s site. Slow loading time, caused by JavaScript can be one of the fastest ruin of a possible sale. This is how BSS defer Javascripts can make change to your site (result generated by GTmetrix)

BSS Defer JavaScript for Magento 2 is developed to solve out this issue. It allows optimizing your Magento store performance quickly and easily.

  • Defer JavaScript until the last moment

With Magento 2 Defer Javascript by BSSCommerce, the other HTML files and CSS will be loaded first then parsing of JavaScript files is implemented right after that. It just merely rearranges the order of loading process so that JavaScript is deferred until the last possible moment. This seems to cause no effect on the performance of your web page, but the outcome of this process is that your page appears much quicker, and the customer can satisfy with your site speed more than other competitors.


  • 5 stars for good extension!
    Massive size of JavaScript had truly slowed down my site and your Magento 2 Defer Javascript blew the headache away.
    verified buyer
    Reviewed by Serena J. Simons on 18 October 2018
  • Speed booster
    My online store load very fast after activated this extension.
    verified buyer
    Reviewed by Landon Goins on 17 July 2018
  • Awesome extension
    Support is great, quick and to the point in resolving issues.

    Don't hesitate to buy from BSScommerce.
    verified buyer
    Reviewed by Ads on 20 April 2018
  • Great Service - Great Module
    Great module, works as advertised. No conflicts! It help my site load faster than ever. Thanks for a great extension!

    Highly recommend to install for all Magento 2 sites!
    verified buyer
    Reviewed by Alvin D. Carroll on 18 July 2017
  • Very useful for me!
    This is nice and very helpful extension for me. I easily installed it and speed up my website quickly.

    Highly recommend to install for Magento 2 websites!
    verified buyer
    Reviewed by Elliot Aardema on 12 July 2017
  • Worth for money
    Your extension is nice and effecive. Although Magento support required Js but I think it is not enough. My website still run slow. Therefore, I choose your Defer JavaScript to improve it. And the result is so great. It is running smooth and faster than before.

    Highly recommend to Magento 2 sites to use!
    verified buyer
    Reviewed by Giraldo Zito on 30 May 2017
  • Plug 'n Play
    This is really Plug 'n Play solution to make the JS deferral in a glimpse of an eye.
    Installed under M2 2.1.1 and works as advertised! Thanks!
    verified buyer
    Reviewed by Viktor Z. on 30 September 2016
  • Super useful
    From 0/100 in Gmetrix, my site load was 100/100 after installing Defer JavaScript. For $50, this extension is beyond expectation.
    verified buyer
    Reviewed by Alex Weber on 30 June 2016
  • Worth a try!
    It is exactly the answer for my trouble. Now my site has been improved and attract more customers. I am really pleased with it.
    verified buyer
    Reviewed by Maria on 24 March 2016
  • Highly appreciate!
    A really wonderful extension I can find. Highly appreciate. Keep moving forward!
    verified buyer
    Reviewed by Oscar on 22 March 2016
  • Good service!
    I love the way you support me. Very enthusiastic and professional!
    verified buyer
    Reviewed by Susan on 16 March 2016
  • You rock!
    It is incredible! The effect is beyond my expectation! You have really done a great job!
    verified buyer
    Reviewed by Oliver on 15 March 2016
  • Compliments to the developers!
    My site has speeded up a lot. Your extension worked absolutely well.
    verified buyer
    Reviewed by Neil on 09 March 2016
Write a Review
You're reviewing: Defer JavaScript for Magento 2
How do you rate this product? *

Release Note

  • v1.0.0: First Release
  • v2.0.2: Defer Iframe
  • v2.0.3: Fix unserialize issue on magento 2.2