ThematicTheme / Thematic

Thematic is a free, open-source, highly extensible, search-engine optimized WordPress Theme Framework featuring 13 widget-ready areas, grid-based layout samples, styling for popular plugins, and a whole community behind it. It's perfect for beginner bloggers and WordPress development professionals. Download it today and set your WordPress-powered site on a rock-solid foundation.
http://thematictheme.com
92 stars 42 forks source link

minify all enqueued scripts and styles #58

Open middlesister opened 11 years ago

middlesister commented 11 years ago

Keep original for reference and enqueue the minified.

file.css       <---- with plenty of comments
file.min.css   <------ enqueued file
scottnix commented 11 years ago

I would almost say to push this issue way down on the list of features to implement.

For anyone using Sass, this isn't useful. An extra few steps would most likely need to be added to Sass to get it to save the file name with the .min. portion of the file extension.

Also I hope most people use a WordPress Plugin like W3 Total Cache which does minify, so it may be unnecessary to worry about this too much.

JamesGeiger commented 11 years ago

Still a good idea though to minify it.

middlesister commented 11 years ago

Yes minifying will definitely be something done towards the end of the release cycle. But I like it because

a) It might discourage tampering with the parent css file and promote proper use of a child theme and b) I want to make the parent theme as small and fast as possible.

I agree that the best option for many sites is a plugin like W3 total cache, but it doesn't hurt to have the parent theme defaults with best performance in mind.