javascript - Minifying JS/CSS files -
i have template has on 20 js/css files references , of course makes lot of http requests. thought stitching them php using minijs.php/mini.php problem im seeing page seems load slower when using minijs.php/mini.php. used yslow , having each 1 linked individually shows 3 seconds load, when use minified solution takes 7-10 seconds load, when cached. recommend better solution or recommend combining them dynamically this?
yes, recommend combining files , minifying them, ideally using either yui compressor, google closure compiler, or, jquery switched to, uglifyjs.
as bit of how , why, read this , search google "why should combine web site assets?".
also bear in mind should preprocessing step, or @ least rendered once , cached , thereafter served static file server (apache or nginx, php should not involved).
Comments
Post a Comment