3 ms·
Agree with the above comments about reducing bloat, and I'm surprised by the number of smart people who think nothing of setting up a Wordpress site with dozens
by tombrossman 12y ago
Agree with the above comments about reducing bloat, and I'm surprised by the number of smart people who think nothing of setting up a Wordpress site with dozens of CSS and JS files.
I just spent 20 minutes trying to find a link to an Apache function I found recently, which will join all your CSS or JS files together with something like an @include server-side automatically. Can't find it now but as I have been doing this manually I hope I find it again. Anyone know what this is? I seem to recall it was a native Apache function, not part of mod_pagespeed.
- moehm 12y agoDo you mean modconcat? [0] There is also a nginx version by Alibaba available. [1] [0] https://code.google.com/p/modconcat/ https://code.google.com/p/modconcat/ [1] https://github.com/alibaba/nginx-http-concat https://github.com/alibaba/nginx-http-concat
- tombrossman 12y agoNah, found that while searching for the other. I can probably use that, though. The one I'm thinking of had you putting a short instruction at the top of the file (like @include) if you wanted it to be part of the output file. Maybe I'm not remembering this correctly as I can find nothing on it now.
- e12e 12y agoServer Side Includes? (mod_include for apache, mod_ssi for some others)? Not sure I'd recommend that as a general solution today -- for static sites I think you're better of building the static html, and serve that up. With varnish, you might want to look at edge-side includes.
- snowwrestler 12y agoWordpress has a number of caching plugins that will do this at the application layer.