<?xml version="1.0" encoding="utf-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
xmlns:media="http://search.yahoo.com/mrss/"
> <channel><title>Comments on: Quick WP tip #2: Conditional Thickbox loading</title> <atom:link href="http://yoast.com/conditional-thickbox-loading/feed/" rel="self" type="application/rss+xml" /><link>http://yoast.com/conditional-thickbox-loading/#utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=conditional-thickbox-loading</link> <description>Tweaking Websites</description> <lastBuildDate>Thu, 18 Mar 2010 03:43:08 +0000</lastBuildDate> <generator>http://wordpress.org/?v=</generator> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /> <item><title>By: craigsunney (CraigSunney)</title><link>http://yoast.com/conditional-thickbox-loading/#comment-76810</link> <dc:creator>craigsunney (CraigSunney)</dc:creator> <pubDate>Tue, 16 Feb 2010 21:31:59 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-76810</guid> <description>Lighten the load on your blog if using thickbox or lightbox2 with this cool Yoast tweak http://yoast.com/conditional-thickbox-loading/</description> <content:encoded><![CDATA[<p>Lighten the load on your blog if using thickbox or lightbox2 with this cool Yoast tweak <a
href="http://yoast.com/conditional-thickbox-loading/" rel="nofollow">http://yoast.com/conditional-thickbox-loading/</a></p> ]]></content:encoded> </item> <item><title>By: Quick WP tip #2: Conditional Thickbox loading &#124; Web Developer</title><link>http://yoast.com/conditional-thickbox-loading/#comment-75591</link> <dc:creator>Quick WP tip #2: Conditional Thickbox loading &#124; Web Developer</dc:creator> <pubDate>Fri, 04 Dec 2009 18:57:15 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-75591</guid> <description>[...] Quick WP tip #2: Conditional Thickbox loading is a post from Joost de Valk&#039;s Yoast &#8211; Tweaking Websites.A good blog needs good hosting, you don&#8217;t want your blog to be slow, or, even worse, down, do you? Use WestHost, and you&#8217;ll never have issues again! Read the full article the source.    Share          CSS/HTML wordpress, wordpress themes     Practical Guide to 404 Error Pages: What WordPress is Missing Press This with Aaron Brazell         blog comments powered by Disqus  var disqus_url = &#039;http://wdtoolkit.com/2009/12/04/quick-wp-tip-2-conditional-thickbox-loading/ &#039;; var disqus_container_id = &#039;disqus_thread&#039;; var facebookXdReceiverPath = &#039;http://wdtoolkit.com/wp-content/plugins/disqus-comment-system/xd_receiver.htm&#039;;   var DsqLocal = { &#039;trackbacks&#039;: [ ], &#039;trackback_url&#039;: &#039;http://wdtoolkit.com/2009/12/04/quick-wp-tip-2-conditional-thickbox-loading/trackback/&#039; };                Archive [...]</description> <content:encoded><![CDATA[<p>[...] Quick WP tip #2: Conditional Thickbox loading is a post from Joost de Valk&#39;s Yoast &#8211; Tweaking Websites.A good blog needs good hosting, you don&#8217;t want your blog to be slow, or, even worse, down, do you? Use WestHost, and you&#8217;ll never have issues again! Read the full article the source.    Share          CSS/HTML wordpress, wordpress themes     Practical Guide to 404 Error Pages: What WordPress is Missing Press This with Aaron Brazell         blog comments powered by Disqus  var disqus_url = &#39;http://wdtoolkit.com/2009/12/04/quick-wp-tip-2-conditional-thickbox-loading/ &#39;; var disqus_container_id = &#39;disqus_thread&#39;; var facebookXdReceiverPath = &#39;http://wdtoolkit.com/wp-content/plugins/disqus-comment-system/xd_receiver.htm&#39;;   var DsqLocal = { &#39;trackbacks&#39;: [ ], &#39;trackback_url&#39;: &#39;http://wdtoolkit.com/2009/12/04/quick-wp-tip-2-conditional-thickbox-loading/trackback/&#39; };                Archive [...]</p> ]]></content:encoded> </item> <item><title>By: eddai</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74787</link> <dc:creator>eddai</dc:creator> <pubDate>Thu, 05 Nov 2009 13:55:33 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74787</guid> <description>I also wonder this..
how to achieve this for homepage ?</description> <content:encoded><![CDATA[<p>I also wonder this..<br
/> how to achieve this for homepage ?</p> ]]></content:encoded> </item> <item><title>By: Aaron D. Campbell</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74670</link> <dc:creator>Aaron D. Campbell</dc:creator> <pubDate>Mon, 02 Nov 2009 20:16:32 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74670</guid> <description>I have a few things to add:
1) There is a function called add_thickbox() that was added in WP 2.5 which enqueues the JS and CSS files.
2) People should read this thread - http://lists.automattic.com/pipermail/wp-hackers/2009-October/028143.html since there are times when a post that needs thickbox would be missed using $post (for all custom queries, things like $myquery = new WP_Query($args);)</description> <content:encoded><![CDATA[<p>I have a few things to add:<br
/> 1) There is a function called add_thickbox() that was added in WP 2.5 which enqueues the JS and CSS files.<br
/> 2) People should read this thread - <a
href="http://lists.automattic.com/pipermail/wp-hackers/2009-October/028143.html" rel="nofollow">http://lists.automattic.com/pipermail/wp-hackers/2009-October/028143.html</a> since there are times when a post that needs thickbox would be missed using $post (for all custom queries, things like $myquery = new WP_Query($args);)</p> ]]></content:encoded> </item> <item><title>By: WordPress Picks for the week [10/25] &#124; Techtites</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74495</link> <dc:creator>WordPress Picks for the week [10/25] &#124; Techtites</dc:creator> <pubDate>Sun, 25 Oct 2009 14:20:21 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74495</guid> <description>[...] Conditional Thickbox loading [...]</description> <content:encoded><![CDATA[<p>[...] Conditional Thickbox loading [...]</p> ]]></content:encoded> </item> <item><title>By: scott bothel</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74414</link> <dc:creator>scott bothel</dc:creator> <pubDate>Thu, 22 Oct 2009 18:14:07 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74414</guid> <description>Rock on. I&#039;ve wanted to figure out an elegant solution to this for a while. It didn&#039;t seem necessary to run a silly plugin for thickbox when its already in core! And selective loading kills two birds for me!</description> <content:encoded><![CDATA[<p>Rock on. I've wanted to figure out an elegant solution to this for a while. It didn't seem necessary to run a silly plugin for thickbox when its already in core! And selective loading kills two birds for me!</p> ]]></content:encoded> </item> <item><title>By: Doug Smith</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74386</link> <dc:creator>Doug Smith</dc:creator> <pubDate>Wed, 21 Oct 2009 16:30:04 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74386</guid> <description>Thanks so much for writing up the tip, Joost. Your timing was perfect since I was just starting a project that needed itFYI, One of the problems with using the built-in Thickbox through wp_enqueue_script() is that you end up with broken URLs for the thickbox graphics. They are coded in thickbox.js as relative URLs and end up getting tacked on to the end of whatever URL you are viewing.If anyone is interested, I posted a solution for that at http://smithsrus.com/loading-wordpress-thickbox-only-when-needed/</description> <content:encoded><![CDATA[<p>Thanks so much for writing up the tip, Joost. Your timing was perfect since I was just starting a project that needed it</p><p>FYI, One of the problems with using the built-in Thickbox through wp_enqueue_script() is that you end up with broken URLs for the thickbox graphics. They are coded in thickbox.js as relative URLs and end up getting tacked on to the end of whatever URL you are viewing.</p><p>If anyone is interested, I posted a solution for that at <a
href="http://smithsrus.com/loading-wordpress-thickbox-only-when-needed/" rel="nofollow">http://smithsrus.com/loading-wordpress-thickbox-only-when-needed/</a></p> ]]></content:encoded> </item> <item><title>By: s.holstens</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74376</link> <dc:creator>s.holstens</dc:creator> <pubDate>Wed, 21 Oct 2009 07:46:40 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74376</guid> <description>Thank you all the time again :D. Very nice work.Greetings to the team</description> <content:encoded><![CDATA[<p>Thank you all the time again :D. Very nice work.Greetings to the team</p> ]]></content:encoded> </item> <item><title>By: Rilwis</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74375</link> <dc:creator>Rilwis</dc:creator> <pubDate>Wed, 21 Oct 2009 07:32:55 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74375</guid> <description>A good tip, Joost de Valk. This make WP loads faster when there&#039;s no images in post content. Thank you.</description> <content:encoded><![CDATA[<p>A good tip, Joost de Valk. This make WP loads faster when there's no images in post content. Thank you.</p> ]]></content:encoded> </item> <item><title>By: Loading WordPress&#8217; Thickbox Only When Needed &#8211; Smiths R Us</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74354</link> <dc:creator>Loading WordPress&#8217; Thickbox Only When Needed &#8211; Smiths R Us</dc:creator> <pubDate>Tue, 20 Oct 2009 16:24:24 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74354</guid> <description>[...] and jQuery loading on all pages when most of them don&#8217;t even use it. That&#8217;s why Joost de Valk detailed a nice tip to only load thickbox when needed by checking the page content for references to it. All it takes is a few lines of code in your [...]</description> <content:encoded><![CDATA[<p>[...] and jQuery loading on all pages when most of them don&#8217;t even use it. That&#8217;s why Joost de Valk detailed a nice tip to only load thickbox when needed by checking the page content for references to it. All it takes is a few lines of code in your [...]</p> ]]></content:encoded> </item> <item><title>By: Travis Quinnelly</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74348</link> <dc:creator>Travis Quinnelly</dc:creator> <pubDate>Tue, 20 Oct 2009 13:44:27 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74348</guid> <description>Great concept...love it. Tried this out with different conditional loading criteria and it works great. I do have a question about the queueing going on...what order does WP use to load these scripts? I noticed that queueing a js file to load only made it load ahead of other scripts set to load. Unfortunately, one of the scripts was dependent on another script that already gets loaded by the template and needed to load before it, not after it. The enqueue method doesnt seem to have an order or am I missing something blatant?</description> <content:encoded><![CDATA[<p>Great concept...love it. Tried this out with different conditional loading criteria and it works great. I do have a question about the queueing going on...what order does WP use to load these scripts? I noticed that queueing a js file to load only made it load ahead of other scripts set to load. Unfortunately, one of the scripts was dependent on another script that already gets loaded by the template and needed to load before it, not after it. The enqueue method doesnt seem to have an order or am I missing something blatant?</p> ]]></content:encoded> </item> <item><title>By: andymurd (andymurd)</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74330</link> <dc:creator>andymurd (andymurd)</dc:creator> <pubDate>Mon, 19 Oct 2009 21:52:55 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74330</guid> <description>Great tip for Wordpress developers by &lt;a rel=&quot;nofollow&quot; href=&quot;http://twitter.com/yoast&quot;&gt;@yoast&lt;/a&gt; http://tinyurl.com/ykw7fp4 How to conditionally load thickbox/lightbox scripts</description> <content:encoded><![CDATA[<p>Great tip for Wordpress developers by <a
rel="nofollow" href="http://twitter.com/yoast">@yoast</a> <a
href="http://tinyurl.com/ykw7fp4" rel="nofollow">http://tinyurl.com/ykw7fp4</a> How to conditionally load thickbox/lightbox scripts</p> ]]></content:encoded> </item> <item><title>By: LoneWolf</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74328</link> <dc:creator>LoneWolf</dc:creator> <pubDate>Mon, 19 Oct 2009 21:47:52 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74328</guid> <description>That actually gives me some more insight into the enqueue functionality now.  I hadn&#039;t really looked into that function too much yet, but now I see that it is more of a request to &quot;add if not already added&quot;.Thanks for setting me straight!</description> <content:encoded><![CDATA[<p>That actually gives me some more insight into the enqueue functionality now.  I hadn't really looked into that function too much yet, but now I see that it is more of a request to "add if not already added".</p><p>Thanks for setting me straight!</p> ]]></content:encoded> </item> <item><title>By: Judd</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74316</link> <dc:creator>Judd</dc:creator> <pubDate>Mon, 19 Oct 2009 14:58:28 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74316</guid> <description>Thanks for sharing this, it&#039;s a nice solution to a common problem.Enjoy your stuff, keep it up (in spite of the whiners).</description> <content:encoded><![CDATA[<p>Thanks for sharing this, it's a nice solution to a common problem.</p><p>Enjoy your stuff, keep it up (in spite of the whiners).</p> ]]></content:encoded> </item> <item><title>By: Joost de Valk</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74315</link> <dc:creator>Joost de Valk</dc:creator> <pubDate>Mon, 19 Oct 2009 14:05:11 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74315</guid> <description>Depends, if they come from, for instance, your RSS feed, and only hit one page, that page will load faster. If they visit more pages on your site and one includes thickbox, then it, indeed, doesn&#039;t matter as much anymore.</description> <content:encoded><![CDATA[<p>Depends, if they come from, for instance, your RSS feed, and only hit one page, that page will load faster. If they visit more pages on your site and one includes thickbox, then it, indeed, doesn't matter as much anymore.</p> ]]></content:encoded> </item> <item><title>By: Joost de Valk</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74314</link> <dc:creator>Joost de Valk</dc:creator> <pubDate>Mon, 19 Oct 2009 14:03:53 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74314</guid> <description>Sorry to say it but: nonsense. If other plugins need Thickbox, they&#039;d enqueue it themselves. I&#039;m not dequeueing, only queueing. Of course this would work for other classes as well, if needed.I said in my post that this was simple, as it was meant to be simple for educational purposes :)</description> <content:encoded><![CDATA[<p>Sorry to say it but: nonsense. If other plugins need Thickbox, they'd enqueue it themselves. I'm not dequeueing, only queueing. Of course this would work for other classes as well, if needed.</p><p>I said in my post that this was simple, as it was meant to be simple for educational purposes :)</p> ]]></content:encoded> </item> <item><title>By: LoneWolf</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74313</link> <dc:creator>LoneWolf</dc:creator> <pubDate>Mon, 19 Oct 2009 13:49:32 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74313</guid> <description>Hi Yoast.  This looks pretty good, but I think you might want to expand the search a little.  This doesn&#039;t take into account people that use &#039; rather than &quot;.  I&#039;ve started using the &#039; rather than &quot; since it works better when the html is inside a php string.It also doesn&#039;t take into account multiple classes in a class statement.  I&#039;ve been doing some work on a plugin for my sites and looking at examples I see a lot of that stuff happening.Because of this, I think it is possible that your change might break other plugins that use thickbox.  I&#039;m still learning how WP puts things together so I could be wrong about that.It would be good to expand this for other javascript heavy classes as well.  You could make it a function that accepts the class name as a parameter.</description> <content:encoded><![CDATA[<p>Hi Yoast.  This looks pretty good, but I think you might want to expand the search a little.  This doesn't take into account people that use ' rather than ".  I've started using the ' rather than " since it works better when the html is inside a php string.</p><p>It also doesn't take into account multiple classes in a class statement.  I've been doing some work on a plugin for my sites and looking at examples I see a lot of that stuff happening.</p><p>Because of this, I think it is possible that your change might break other plugins that use thickbox.  I'm still learning how WP puts things together so I could be wrong about that.</p><p>It would be good to expand this for other javascript heavy classes as well.  You could make it a function that accepts the class name as a parameter.</p> ]]></content:encoded> </item> <item><title>By: Bloginstall</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74310</link> <dc:creator>Bloginstall</dc:creator> <pubDate>Mon, 19 Oct 2009 12:53:24 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74310</guid> <description>Wow, why did I not think about this before ? Great little tip that I have just implemented in a new project. As far as I know, the js is cached anyway, so does this really have any effect after the first load on a page that does include the lightbox ?</description> <content:encoded><![CDATA[<p>Wow, why did I not think about this before ? Great little tip that I have just implemented in a new project. As far as I know, the js is cached anyway, so does this really have any effect after the first load on a page that does include the lightbox ?</p> ]]></content:encoded> </item> <item><title>By: David</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74305</link> <dc:creator>David</dc:creator> <pubDate>Mon, 19 Oct 2009 09:19:43 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74305</guid> <description>Fancybox looks great, I&#039;ve found thickbox kind of slow to load anything, like sometimes 10+secs, would this method work with fancybox too?</description> <content:encoded><![CDATA[<p>Fancybox looks great, I've found thickbox kind of slow to load anything, like sometimes 10+secs, would this method work with fancybox too?</p> ]]></content:encoded> </item> <item><title>By: Karl Foxley</title><link>http://yoast.com/conditional-thickbox-loading/#comment-74304</link> <dc:creator>Karl Foxley</dc:creator> <pubDate>Mon, 19 Oct 2009 09:02:08 +0000</pubDate> <guid
isPermaLink="false">http://yoast.com/?p=1621#comment-74304</guid> <description>Thanks Joost, this is going to come in very handy on my site. I always look forward to reading your latest updates!Karl</description> <content:encoded><![CDATA[<p>Thanks Joost, this is going to come in very handy on my site. I always look forward to reading your latest updates!</p><p>Karl</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using apc
Page Caching using apc
Database Caching 1/6 queries in 0.010 seconds using apc
Content Delivery Network via netdna.yoast.com

Served from: yoast.com @ 2010-03-18 08:02:43 -->