remove render-blocking javascript typekit

To resolve the render-blocking javascript typekit fonts which shows in Google Pagespeed insight all you need to do is add async attribute in the script. For example:

Before:

<script src=”https://use.typekit.net/ota8ujp.js&#8221; async></script 

After

<script src=”https://use.typekit.net/ota8ujp.js&#8221; async></script

Also put the script to footer so that it does not cause the render-blocking anymore

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s