Created
December 9, 2014 17:43
-
-
Save andyvanee/0d536c061eae1e04bfa7 to your computer and use it in GitHub Desktop.
Non-blocking Typekit.load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
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