Binary Thinking – Karol Sójko's blog

Karol Sójko's blog

How to optimize frontend in Symfony (CSS & JavaScript)

leave a comment »

What ?

If you’re looking forward to optimize the frontend in your Symfony project or to introduce different CSS or JavaScript versions to each language in your application there’s a nice plugin that will help you with that. It’s called sfMinifyTSPlugin and it integrates Google’s minify library so you know it’s good stuff :) .

Why ?

What makes it stand out from the rest of Symfony minify plugins is the fact that you don’t need to change anything in your .htaccess file or any other server stuff, just an out-of-the-box cool plugin.

The other nice thing about it is that you can implement it either as a filter or with a helper.

The fun part is also that the authors implemented some symfony tasks to help you clear-cache and fix permissions.

The cache files names are generated with a date so you’ve got all the usefull info about it and speeds up your web application just like that.

So don’t hesitate to experiment with this cool plugin in your future Symfony applications.

Share

Written by Karol Sójko

September 6, 2009 at 12:12 pm

Leave a Reply