Skip to content

Instantly share code, notes, and snippets.

@andyvanee
Created December 9, 2014 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyvanee/0d536c061eae1e04bfa7 to your computer and use it in GitHub Desktop.
Save andyvanee/0d536c061eae1e04bfa7 to your computer and use it in GitHub Desktop.
Non-blocking Typekit.load
<!--
blocking version
<script async src="//use.typekit.net/loj4asn.js"></script>
<script>var try{Typekit.load();}catch(e){}</script>
non-blocking version below uses script async and setInterval. Replace src="" with your own kit URL
-->
<script async src="//use.typekit.net/loj4asn.js"></script>
<script>var tkloaded=setInterval(function(){try{Typekit.load();clearInterval(tkloaded)}catch(e){}}, 300);</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment