<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>The Disqus Blog - Latest Comments in jQuery Disqus Plugin</title><link>http://disqus.disqus.com/</link><description>The Official Disqus Blog.</description><language>en</language><lastBuildDate>Mon, 20 Jul 2009 12:53:51 -0000</lastBuildDate><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-12961879</link><description>Great, that will save other users a small headache :-) The plug-in works great.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jasper</dc:creator><pubDate>Mon, 20 Jul 2009 12:53:51 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-12961594</link><description>Thanks Jasper, I rolled the update in &lt;a href="http://plugins.jquery.com/node/9277" rel="nofollow"&gt;jQuery Disqus 1.1.25&lt;/a&gt;.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">RobLoach</dc:creator><pubDate>Mon, 20 Jul 2009 12:45:40 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-12921749</link><description>Good find, Jasper! I created a ticket for this at &lt;a href="http://drupal.org/node/524340" rel="nofollow"&gt;http://drupal.org/node/524340&lt;/a&gt; and will hit it up tomorrow. Thanks!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">RobLoach</dc:creator><pubDate>Sun, 19 Jul 2009 12:37:51 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-12878621</link><description>Hi Rob,&lt;br&gt;&lt;br&gt;Thanks for the plug-in. One issue though, it gives an error in IE6 + IE7, which can easily be fixed by removing the commas in line 70 and 95 of the jquery.disqus.js file. This is a typical IE issue and not the first time I run into this.&lt;br&gt;&lt;br&gt;Keep up the good work!&lt;br&gt;&lt;br&gt;Jasper</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jasper</dc:creator><pubDate>Sat, 18 Jul 2009 10:25:18 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-12411468</link><description>I just stuck up the &lt;a href="http://plugins.jquery.com/project/disqus" rel="nofollow"&gt;jQuery Disqus Plugin&lt;/a&gt;. Thank you to Jason and Daniel for removing the dependency on document.write.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">RobLoach</dc:creator><pubDate>Thu, 09 Jul 2009 18:24:46 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-6405365</link><description>sorry can't delete</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">mathi_s</dc:creator><pubDate>Thu, 19 Feb 2009 12:00:11 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-5238192</link><description>@chis, you are welcome&lt;br&gt;&lt;br&gt;I just hope disqus will at one point integrate this.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">angerman</dc:creator><pubDate>Sat, 17 Jan 2009 10:30:07 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-4892031</link><description>Thanks for this example Moritz. &lt;br&gt;&lt;br&gt;I've just implemented your mod on a test system ( where I'm trying out Disqus integration) and found this sped page loads considerably.  Cheers</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">crazypick</dc:creator><pubDate>Mon, 05 Jan 2009 08:25:58 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-4861982</link><description>I have done exactly the same for my blog application. And ran into the same issue.&lt;br&gt;The only feasible work around, I found so far is to split the embed.js apart.&lt;br&gt;&lt;br&gt;The document.write in the embed.js basically just injects the stylesheet. Which can easily been pulled out and offered as separate file. I wonder why this is not a default option for embedding disqus, especially as some people use to alter the disqus theme by overwriting the css, in which case loading the base css is kind of pointless.&lt;br&gt;&lt;br&gt;One problem persists though, if you split the embed.js apart, you get your forum id hardcoded into the js file.&lt;br&gt;&lt;br&gt;Assuming you split the embed.js apart, you could do something like this, using jQuery:&lt;br&gt;&lt;br&gt;&lt;br&gt;        if($("#disqus_thread").length) {&lt;br&gt;            var head = document.getElementsByTagName('head')[0];&lt;br&gt;            $(document.createElement('link'))&lt;br&gt;                .attr({type: 'text/css', href: '/media/css/disqus.css', rel: 'stylesheet', media: 'screen'})&lt;br&gt;                .appendTo(head); &lt;br&gt;            $.getScript('/contrib/js/disqus.embed.js');&lt;br&gt;        }&lt;br&gt;&lt;br&gt;&lt;br&gt;This obviously will only load the disqus script and style if the element with the id #disqus_thread exist and requires the head tag to be present.&lt;br&gt;&lt;br&gt;You can take a look at it at:&lt;br&gt;&lt;br&gt;&lt;a href="http://journal.moritzangermann.com" rel="nofollow"&gt;http://journal.moritzangermann.com&lt;/a&gt;&lt;br&gt;&lt;br&gt;the splitted files are (for convinience):&lt;br&gt;&lt;a href="http://journal.moritzangermann.com/media/css/disqus.css" rel="nofollow"&gt;http://journal.moritzangermann.com/media/css/di...&lt;/a&gt;&lt;br&gt;&lt;a href="http://journal.moritzangermann.com/contrib/js/disqus.embed.js" rel="nofollow"&gt;http://journal.moritzangermann.com/contrib/js/d...&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">angerman</dc:creator><pubDate>Sat, 03 Jan 2009 00:49:00 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-4675352</link><description>i prefer to use ajax, it is much faster and your eyes is always on the screen</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">lv handbags</dc:creator><pubDate>Sun, 28 Dec 2008 06:19:28 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-4245632</link><description>hello</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">manojkumar</dc:creator><pubDate>Mon, 08 Dec 2008 03:39:43 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-4039971</link><description>will the inclusion of javascript in a web page would make the page to load slowly?&lt;br&gt;Thanks in advance&lt;br&gt;regards&lt;br&gt;&lt;a href="http://www.zaidler.com/figurative/" rel="nofollow"&gt;Figurative Paintings&lt;/a&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">zaidler</dc:creator><pubDate>Thu, 27 Nov 2008 12:40:39 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-993925</link><description>Thanks for the contribution, Rob.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">danielha</dc:creator><pubDate>Thu, 24 Jul 2008 17:58:10 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-993884</link><description>I knew something was wrong with how the events were being handled. Well, here's something to work off of: &lt;a href="http://drupalbin.com/2575" rel="nofollow"&gt;http://drupalbin.com/2575&lt;/a&gt; . If there's anyway I can help, feel free to let me know.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">RobLoach</dc:creator><pubDate>Thu, 24 Jul 2008 17:54:06 -0000</pubDate></item><item><title>Re: jQuery Disqus Plugin</title><link>http://disqus.disqus.com/jquery_disqus_plugin/#comment-993260</link><description>Hi Rob,&lt;br&gt;&lt;br&gt;Sorry about the issues. The white screen is because of how jQuery  &lt;br&gt;handles onDomReady.&lt;br&gt;&lt;br&gt;Since Disqus needs to modify the DOM, there is a race condition with  &lt;br&gt;jQuery's event listener. What ends up happening is that Disqus writes  &lt;br&gt;to the page while jQuery is modifying the DOM and ends up writing over  &lt;br&gt;the entire page (e.g. white screen).&lt;br&gt;&lt;br&gt;This is not an issue with how the Disqus script is written. jQuery's  &lt;br&gt;onDomReady reacts similarly with most applications that need to modify  &lt;br&gt;the DOM. We've been working around this recently and hope to update  &lt;br&gt;you on the matter soon.&lt;br&gt;&lt;br&gt;Thanks.</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">danielha</dc:creator><pubDate>Thu, 24 Jul 2008 16:55:10 -0000</pubDate></item></channel></rss>