Google+

Pages

Friday, January 1, 2016

Eliminate render-blocking JavaScript and CSS in above-the-fold content in Magento

To remove render-blocking JavaScript issue in Magento using layout xml directly simply add either <params>defer</params> or <params>defer</params> before </action> tag.

For example:

<action method="addJs"><script>prototype/prototype.js</script></action>

Replace it with following:

<action method="addJs"><script>prototype/prototype.js</script><params>defer</params></action>

or

<action method="addJs"><script>prototype/prototype.js</script><params>async</params></action>

7 comments:

Let's Think said...

Thanx sir

Unknown said...

Thanks for sharing great information in your blog. Got to learn new things from your Blog . It was very nice blog to learn about Magento.
http://thecreatingexperts.com/magento-training-in-chennai/

iFour Technolab Pvt Ltd said...

Great post with very useful information to all thanks for sharing with all of us. I like it very much.
eCommerce solution providers india

LW said...

This blog is very informative thanks for sharing such information with us.
Technologies

Shopify Design Company said...

Shopify is the best and affordable eCommerce platform for development. Unisoft Informatics is the best Shopify Design Company that provides the fully-featured online store with all major features which are essential for the online store.

Vivek Sinha said...

Go for the ultimate Virtual Employee Services that provide the most satisfying results to their clients by working remotely. IOGOOS Solution trained its employees with proper methodology.

Virtual Employee

Sofvare said...

Thanks for sharing great information on your blog. Got to learn new things from your Blog. It was a very nice blog to learn about Magento.web development company