2011年2月11日星期五

Re: [fw-mvc] Re: CSS/JS Includes

Le 11/02/11 09:57, Joe Balancio a écrit :
>
> Yes, you can include all the styles your site will need in one CSS, but you
> get the overhead of including styles that some pages will not need. Same
> thing with JS.
>

As Saša Stamenković stated you should minify your css/js for the reason
he mentioned.

It's not good practice to multiply the request to fetch the CSS and JS.

Take a look here for an implemtation of minify embed in a View Helper:

http://www.gsdesign.ro/blog/minify-css-in-zendframework/

没有评论: