Start To :
- Created On: 08-10-2017
- Last Updated On: N/A
- By: CynoInfotech Team
- Platform: Magento 2 Community Edition
- Email: cynoinfotech@gmail.com
Information
Defer JavaScript extension in Magento 2 is used to Decrease loading speed of the website. On all pages javascript should put in the header section and that takes more load time. But using Defer the parsing of javascript extension move all javascript bottom of page. That means when the page is loaded first HTML and CSS and then defer the parsing minimizing javascript is executed. The result of using defers parsing javascript extension increase the Google page speed score.
Features
You can find these features below:
- Defer JavaScript extension is used to decrease loading speed of page.
- Move all JavaScript at the bottom of the page.
- Admin section controller.
- Simple configuration.
- Improves Store Performance.
Settings
Settings Options
- Enable or Disable
- Enable or Disable for Home page
- Exclude controller
- Exclude path
Backend
choose enable or disable mode of extension.
Choose General setting
Frontend view
Before Defer javascript
Before Defer javascript
Installation Guide
- Download extension zip file from the account and extract it
- root of your Magento 2 installation and merge app folder
- folder structure --> app/code/Cynoinfotech/Deferjs
After this run below commands from Magento 2 root directory to install module.
- Run :cd <your Magento install dir>
- php bin/magento cache:disable
- php bin/magento module:enable Cynoinfotech_Deferjs
- php bin/magento setup:upgrade
- rm -rf var/cache var/generation var/di var/cache
Demo
- N/A