Title: Using Adobe Typekit with Async JS
Last modified: August 24, 2016

---

# Using Adobe Typekit with Async JS

 *  [rcgordon](https://wordpress.org/support/users/rcgordon/)
 * (@rcgordon)
 * [11 years ago](https://wordpress.org/support/topic/using-adobe-typekit-with-async-js/)
 * Is integrating Typekit calls with Async JS possible and productive?
 * I am currently just hard-coding the provided async Typekit code into my footer.
   php (which seemed to improve apparent loading time compared to the suggested 
   approach of putting it in the header.php).
 *     ```
       <script type="text/javascript">
       	(function(d) {
       		var tkTimeout=3000;
       		if(window.sessionStorage){if(sessionStorage.getItem('useTypekit')==='false'){tkTimeout=0;}}
       		var config = {
       			kitId: <REDACTED>,
       			scriptTimeout: tkTimeout
       		},
       		h=d.documentElement,t=setTimeout(function(){h.className=h.className.replace(/\bwf-loading\b/g,"")+"wf-inactive";if(window.sessionStorage){sessionStorage.setItem("useTypekit","false")}},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);
       ```
   
 * Site: [theshelterblog.com](http://theshelterblog.com/)
 * [https://wordpress.org/plugins/asynchronous-javascript/](https://wordpress.org/plugins/asynchronous-javascript/)

The topic ‘Using Adobe Typekit with Async JS’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/asynchronous-javascript_e3541a.svg)
 * [Asynchronous Javascript](https://wordpress.org/plugins/asynchronous-javascript/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/asynchronous-javascript/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/asynchronous-javascript/)
 * [Active Topics](https://wordpress.org/support/plugin/asynchronous-javascript/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/asynchronous-javascript/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/asynchronous-javascript/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [rcgordon](https://wordpress.org/support/users/rcgordon/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/using-adobe-typekit-with-async-js/)
 * Status: not resolved