Skip to content

Instantly share code, notes, and snippets.

@jcdavison
Created September 13, 2017 15:56
Show Gist options
  • Select an option

  • Save jcdavison/6fe7d61254152229b93b2cd458bcb846 to your computer and use it in GitHub Desktop.

Select an option

Save jcdavison/6fe7d61254152229b93b2cd458bcb846 to your computer and use it in GitHub Desktop.
sttyle.css
<script src="https://use.typekit.net/avi1fqd.js"></script>
<script>try{Typekit.load({ async: true });}catch(e){}</script>
<script>
(function(d) {
var config = {
kitId: 'avi1fqd',
scriptTimeout: 3000,
async: true
},
h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+" wf-inactive";},config.scriptTimeout),tk=d.createElement("script"),f=false,s=d.getElementsByTagName("script")[0],a;h.className+=" wf-loading";tk.src='https://use.typekit.net/'+config.kitId+'.js';tk.async=true;tk.onload=tk.onreadystatechange=function(){a=this.readyState;if(f||a&&a!="complete"&&a!="loaded")return;f=true;clearTimeout(t);try{Typekit.load(config)}catch(e){}};s.parentNode.insertBefore(tk,s)
})(document);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment