Advertisement:

Author Topic: Concat js and css files  (Read 1809 times)

morvy

  • Full Member
  • ***
  • Posts: 103
  • always dissatisfied
Concat js and css files
« on: August 14, 2011, 05:55:15 pm »
I see that all JS files are minified, but..

boilerplate template uses .htaccess to concatenate all JS and CSS files into single file, so it's quicker and the code is smaller too, maybe the only problem could be in custom template, but integrated htaccess generator for friendly urls should handle theme location and add rules..

what do you think?

EDIT:
this should clarify what I'm talking about
http://rakaz.nl/2006/12/make-your-pages-load-faster-by-combining-and-compressing-javascript-and-css-files.html
« Last Edit: August 16, 2011, 12:37:49 pm by morvy »

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: Concat js and css files
« Reply #1 on: August 16, 2011, 02:17:02 pm »
I like more the idea of creating in in local the file... or maybe we can cache the first time the file is called. but... great tip!

morvy

  • Full Member
  • ***
  • Posts: 103
  • always dissatisfied
Re: Concat js and css files
« Reply #2 on: August 16, 2011, 05:32:21 pm »
the second solution is from boilerplate, it uses purely htaccess and fake JS/CSS file, but I can't get it working, throws error 500 :(

Juan Ramón

  • Osclass Developer
  • Hero Member
  • *****
  • Posts: 2382
Re: Concat js and css files
« Reply #3 on: August 16, 2011, 06:45:59 pm »
I haven't tried... But I'll try the first option you said.