1
0
mirror of https://github.com/ascribe/wp-theme synced 2024-12-22 17:23:55 +01:00

switch to loading Typekit without js

* results in no Adobe cookies being set
This commit is contained in:
Matthias Kretschmann 2018-05-23 13:23:34 +02:00
parent e11b68a6de
commit 5c892f8234
Signed by: m
GPG Key ID: 606EEEF3C479A91F

View File

@ -66,15 +66,7 @@ if ( is_category() || is_tag() ) {
<meta name="theme-color" content="#ffffff"> <meta name="theme-color" content="#ffffff">
<!-- Typekit --> <!-- Typekit -->
<script> <link rel="stylesheet" href="https://use.typekit.net/gma2yhj.css">
(function(d) {
var config = {
kitId: 'gma2yhj',
scriptTimeout: 3000
},
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='//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>
<?php wp_head(); ?> <?php wp_head(); ?>
</head> </head>