Processing... Please wait...

Product was successfully added to your shopping cart.

Magento 2 Defer JavaScript Extension User Guide

Magento 2 Defer JavaScript Extension User Guide Defer JavaScript is a Magento 2 extension that helps you remove render-blocking javascript from your pages.

What is render-blocking javascript? Find out on google helper page.

The extensions requires no configuration - once you install it it is ready to be used.


Disclaimer: it is a good security measure to backup your files and DB before you use the extension. Just in case things go wrong you would have all your data intact in a safe place.



You can install the extension by unzipping it onto magento 2 root folder and manually installing it:

cd /var/www/magento2
unzip Goivvy_DJS-1.0.0.zip
php bin/magento setup:upgrade
php bin/magento deploy:mode:set production



I run benchmarks with Google PageSpeed Insights:

Google PageSpeed Desktop Defer JavaScript benchmark

Google PageSpeed Mobile Defer JavaScript benchmark


With gtmetrix:

GTmetrix Defer JavaScript benchmark


With webpagetest:

Webpagetest Defer JavaScript benchmark