----- # Custom isHidden: false menupriority: 1 kind: article date: 2009-09-17T23:27:54+02:00 title: Load Disqus Asynchronously multiTitle: fr: Load Disqus Asynchronously en: Load Disqus Asynchronously multiDescription: fr: pas de description. en: no description. tags: - disqus - web - javascript - intense debate - comments ----- # Update In fact this method works for old threads. But it fails to create new post threads. This is why I tried and be conquered by [intensedebate](http://intensedebate.com), as you can see in the bottom of this page. Remark I didn't have any comment on my blog when I switched. Therefore my lack of influence was a good thing :-). newcorps Before begining, I must state that I **love** Disqus. I know there is a similar blog entry at [Trephine.org](http://trephine.org/t/index.php?title=Site_improvements_-_fighting_with_Disqus). Here I just add a straight and easy way to load disqus asynchronously using jQuery. I also know there is a jQuery plugin to make just that. Unfortunately I had some issue with CSS. *Now let's begin.* newcorps # Why? Why should I want to load the disqus javascript asynchronously? - Efficiency: I don't want my page to wait the complete execution of disqus script to load. - More independance: when disqus is down, my page is blocked! newcorps # How? I give a solution with jQuery, but I'm certain it will work with many other js library. ### Javascript replace:
window.disqus_no_style=true;
$(document).ready(function(){
$.getScript("http://disqus.com/forums/YOUR_DISQUS_ID/embed.js");
});