How to Defer Parsing of JavaScript in Magento

in #magento7 years ago (edited)

Focussing on the Magento store, the defer parsing of Javascript helps improve the site speed. Usually, the Javascript is placed between the header tags and the code is implemented from top to bottom when a website loads. This results in loading of all the JS taking time which is not necessary at the point of time.

How-to-Defer-Parsing-of-JavaScript-in-Magento-Social-Share.png

The defer parsing of Javascript in Magento enables loading of HTML and CSS scripts before the JS. This is enabled by replacing the Javascript from the header to footer tags. It results in the site speed appearing to be faster for the user!

For more info: https://meetanshi.com/blog/defer-parsing-of-javascript-in-magento/

Sort:  

Cheap Upvote & Welcome Bonus

Join Our new Site and get 30 STEEM as welcome bonus.
Get cheaper Upvote upto $21+
Resteem over 90k+ Followers
JOIN NOW

Coin Marketplace

STEEM 0.13
TRX 0.34
JST 0.036
BTC 107398.10
ETH 4387.14
USDT 1.00
SBD 0.83