GZip CSS and JS

Maybe this is already a feature and I don't know how to use it.. but

it would be awesome if the array in the variables file would combine all the js files in the array to one file and gzip them onto the page.. this would help with optimization and seo..

Comments

  • edited 6:30PM
    There is an option in the fuel/application/config/asset.php config file. There is a $config['assets_output'] parameter you can set to TRUE. There is a comment above that parameter which explains it. You'll need to make a assets/cache folder writable and will need to remember to clear that cache after any change.
  • edited 6:30PM
    great! how does this work with files outside of the js and css folder.. for example, I have a fancybox folder with js and css..
  • edited 6:30PM
    This only works if you use the asset_helper "js()" and "css()" functions which require javascript and css files exists in the assets/js and assets/css folders respectively:
    http://docs.getfuelcms.com/helpers/asset_helper
Sign In or Register to comment.