Optimize your CSS and JS with CakePHP in minutes
Published on Mar 21, 2009 by Jamie MunroOne of my first articles discussed YSlow. An excellent Mozilla add-on to help you understand why your web page may be loading slowly.
Just recently I was surfing CakePHP's bakery and found a nice add-on to simplify the process and make it super easy.
The helper is called PHPSpeedy Helper. It's quite simple to set up. First you download PHPSpeedy and extract it to your vendors directly.
Next up you install the helper provided and update your app_controller.php to automatically include the helper each time.
The first time the page loads it will be a bit slow while it compiles and minifies, don't worry this is only a one time thing. Next time it will be lightening fast.
View the full article from the bakery here:
* Please note: I did not build this helper, so if you require help, please comment in the Bakery to get the authors assistance.
Time to get back to developing!