<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Tag: minifying</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Wed, 22 May 2013 09:48:58 +0000</pubDate>

<item>
<title>middlesister on "Performance Challenge for Thematic Child Themes"</title>
<link>http://themeshaper.com/forums/topic/performance-challenge-for-thematic-child-themes#post-20687</link>
<pubDate>Tue, 19 Apr 2011 10:33:59 +0000</pubDate>
<dc:creator>middlesister</dc:creator>
<guid isPermaLink="false">20687@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;There is a quite nice comparison of caching solutions at &#60;a href=&#34;http://www.tutorial9.net/tutorials/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/&#34; rel=&#34;nofollow&#34;&#62;http://www.tutorial9.net/tutorials/web-tutorials/wordpress-caching-whats-the-best-caching-plugin/&#60;/a&#62;&#60;br /&#62;
It was done a year ago, don't know if there is a more recent comparison around. The author prefers total cache over super cache, even though super cache is slightly faster in the benchmarks. Apparently the fastest plugin is hyper cache - though that does not include minifying so you have to fix that yourself.
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "Performance Challenge for Thematic Child Themes"</title>
<link>http://themeshaper.com/forums/topic/performance-challenge-for-thematic-child-themes#post-20666</link>
<pubDate>Mon, 18 Apr 2011 18:24:08 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">20666@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;interesting.  i have mostly just stopped using the import, copy everything into style.css and let wp_minify or autoptimize minify &#60;em&#62;that&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;anybody care to comment on performance differences between total cache and super cache?  i always use super cache b/c i don't have to do anything.  it works almost automagically, but i don't really know just how well it is working.
&#60;/p&#62;</description>
</item>
<item>
<title>snackmaster on "Performance Challenge for Thematic Child Themes"</title>
<link>http://themeshaper.com/forums/topic/performance-challenge-for-thematic-child-themes#post-20662</link>
<pubDate>Mon, 18 Apr 2011 14:57:57 +0000</pubDate>
<dc:creator>snackmaster</dc:creator>
<guid isPermaLink="false">20662@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thank you!! I went with @sqlwiz's method, W3 Total cache slurped up the files and I added them all, reset the order so my custom CSS was called last and boom.
&#60;/p&#62;</description>
</item>
<item>
<title>theorib on "Performance Challenge for Thematic Child Themes"</title>
<link>http://themeshaper.com/forums/topic/performance-challenge-for-thematic-child-themes#post-11674</link>
<pubDate>Thu, 22 Apr 2010 18:32:39 +0000</pubDate>
<dc:creator>theorib</dc:creator>
<guid isPermaLink="false">11674@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks for the reply @sqlwiz I did read the &#34;Modular CSS&#34; article prior to posting this.&#60;/p&#62;
&#60;p&#62;Linking to the multiple CSS files instead of importing and using W3TC is indeed a practical approach. As a matter of fact, I hadn't connected the dot's for combining both approaches until you pointed out, thanks!&#60;/p&#62;
&#60;p&#62;On the other hand, the in-theme solution still sounds interesting to me so I might give it another shot...&#60;/p&#62;
&#60;p&#62;Thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>sqlwiz on "Performance Challenge for Thematic Child Themes"</title>
<link>http://themeshaper.com/forums/topic/performance-challenge-for-thematic-child-themes#post-11669</link>
<pubDate>Thu, 22 Apr 2010 16:32:12 +0000</pubDate>
<dc:creator>sqlwiz</dc:creator>
<guid isPermaLink="false">11669@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Interesting Approach. Just a quick note.&#60;/p&#62;
&#60;p&#62;I am going to use Total Cache as well. FYI: The issue is with minify not W3TC and Total Cache may support other minify engines in the future.&#60;/p&#62;
&#60;p&#62;Note that with regards to CSS, Link is better than Import for page rendering. I decided to replace import with link anyway in my child theme, so now Total Cache can function as intended.&#60;/p&#62;
&#60;p&#62;Read about link vs. import here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://themeshaper.com/modular-css-wordpress-child-themes/&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/modular-css-wordpress-child-themes/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;To implement this, you need to filter thematic_create_stylesheet. An example using thematic_create_stylesheet filter can be found here:&#60;/p&#62;
&#60;p&#62;&#60;a href=&#34;http://themeshaper.com/thematic/guide/?page_id=12&#34; rel=&#34;nofollow&#34;&#62;http://themeshaper.com/thematic/guide/?page_id=12&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;A side benefit - I can support a mix of 1, 2 and 3 column layouts within this filter by checking is_page_template('...')
&#60;/p&#62;</description>
</item>
<item>
<title>theorib on "Performance Challenge for Thematic Child Themes"</title>
<link>http://themeshaper.com/forums/topic/performance-challenge-for-thematic-child-themes#post-11588</link>
<pubDate>Tue, 20 Apr 2010 14:25:32 +0000</pubDate>
<dc:creator>theorib</dc:creator>
<guid isPermaLink="false">11588@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I'm working on performance of a Thematic Child Theme and I'm faced with an issue.&#60;/p&#62;
&#60;p&#62;* Automatically compressing multiple CSS files into one *&#60;/p&#62;
&#60;p&#62;&#60;em&#62;It's a long post so read it if you will and of you do, I'd be delighted if you shared your thoughts!&#60;/em&#62;&#60;/p&#62;
&#60;p&#62;In developing my own personal website: &#60;a href=&#34;http://theoribeiro.com,&#34; rel=&#34;nofollow&#34;&#62;http://theoribeiro.com,&#60;/a&#62; I test driven most of the nice cache and optimization plugins out there. I ended up with a list of 4 favorites which can be used in two combos:&#60;/p&#62;
&#60;p&#62;Combo 1:&#60;br /&#62;
* DB Cache Reloaded (for caching database queries)&#60;br /&#62;
* WP CSS (for joining multiple @import CSS declarations into one CSS file and minifying the content)&#60;br /&#62;
* Hyper Cache (for caching pages and serving as static HTML files)&#60;/p&#62;
&#60;p&#62;Combo 2:&#60;br /&#62;
* W3 Total Cache (works for almost everything plus more but doesn't join multiple @import declarations into one CSS file)&#60;br /&#62;
* ??????? (for joining multiple @import CSS declarations into one CSS file and minifying the content - WP CSS doesn't work here in conjunction with the previous) &#60;/p&#62;
&#60;p&#62;I don't actually need such a performance boost at this time but for the sake of science and, love for experimentation and all, my first option was Combo 1 but combo 2 offered one irresistible temptation:&#60;br /&#62;
Trying Amazon's Cloudfront Content Delivery Network for speeding delivery of static content around the globe so I ended up choosing the former.&#60;/p&#62;
&#60;p&#62;Only trouble is I couldn't find a solution to joining and minifying @import declared CSS that would work along W3 Total Cache (in my opinion the great plugin biggest flaw).  &#60;/p&#62;
&#60;p&#62;I thought, what the heck, why not come up with an &#34;in-theme&#34; solution for doing this job and serve an already combined and minified file to start with??&#60;br /&#62;
Though I managed to build all the website myself I'm a kind of PHP and Javascript illiterate that kind of guess my way through it combining the help and knowledge of others with my intuition but some stuff are still beyond my reach.&#60;/p&#62;
&#60;p&#62;I came across a couple of interesting posts on the web, specially these three:&#60;br /&#62;
&#60;a href=&#34;http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php&#34; rel=&#34;nofollow&#34;&#62;http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://rakaz.nl/code/combine&#34; rel=&#34;nofollow&#34;&#62;http://rakaz.nl/code/combine&#60;/a&#62;&#60;br /&#62;
&#60;a href=&#34;http://www.sonassi.com/blog/2009/06/04/combine-and-compile-css-and-js-into-gzipped-files/&#34; rel=&#34;nofollow&#34;&#62;http://www.sonassi.com/blog/2009/06/04/combine-and-compile-css-and-js-into-gzipped-files/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and begun trying to build a solution inside my &#60;code&#62;functions.php&#60;/code&#62; file.&#60;/p&#62;
&#60;p&#62;It's on the early stages but so far, only putting the following function works but compresses all my HTML and CSS and is probably not very nicely done or written. Creating a cache file on the fly would be much more elegant.&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;ob_start(&#38;quot;compress&#38;quot;);
function compress($buffer) {
  /* remove comments */
  $buffer = preg_replace(&#38;#39;!/\*[^*]*\*+([^/][^*]*\*+)*/!&#38;#39;, &#38;#39;&#38;#39;, $buffer);
  /* remove tabs, spaces, newlines, etc. */
  $buffer = str_replace(array(&#38;quot;\r\n&#38;quot;, &#38;quot;\r&#38;quot;, &#38;quot;\n&#38;quot;, &#38;quot;\t&#38;quot;, &#38;#39;  &#38;#39;, &#38;#39;    &#38;#39;, &#38;#39;    &#38;#39;), &#38;#39;&#38;#39;, $buffer);
  return $buffer;
}

function compress_css() {
?&#38;gt;&#38;lt;style&#38;gt;&#38;lt;?php
  /* your css files */
  include(&#38;#39;library/styles/reset.css&#38;#39;);
  include(&#38;#39;library/styles/typography.css&#38;#39;);
  include(&#38;#39;library/layouts/1c-fixed.css&#38;#39;);
  include(&#38;#39;library/styles/images.css&#38;#39;);
  include(&#38;#39;library/styles/access-essencials.css&#38;#39;);
  include(&#38;#39;library/styles/access.css&#38;#39;);
  include(&#38;#39;library/styles/screen.css&#38;#39;);
  include(&#38;#39;library/styles/plugins.css&#38;#39;);
  include(&#38;#39;library/styles/jquery.ad-gallery.css&#38;#39;);
  include(&#38;#39;library/styles/colorbox-plus.css&#38;#39;);
  include(&#38;#39;library/styles/photoshelter.css&#38;#39;);
?&#38;gt;&#38;lt;/style&#38;gt;
&#38;lt;?php
}
add_filter(&#38;#39;thematic_create_stylesheet&#38;#39;, &#38;#39;compress_css&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Anyone interested in sharing their thoughts or helping with the challenge? :)
&#60;/p&#62;</description>
</item>

</channel>
</rss>
