Created
February 16, 2015 10:34
-
-
Save KingScooty/2bf2ddbd3054c76b5c7a to your computer and use it in GitHub Desktop.
Remove Typekit from mobile devices all together.
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
<script> | |
//Replace this with your desktop Typekit code | |
var kit = 'xxxxx' | |
// Adjust the width threshold | |
if( window.innerWidth > 800 ) { | |
document.write('\x3Cscript src="//use.typekit.net/'+ kit +'.js">\x3C/script>'); | |
document.write('\x3Cscript>try{Typekit.load();}catch(e){}\x3C/script>'); | |
}; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment