Nick
08-22-2009, 02:03 PM
I was looking at the source code for a post page and counted a total of 18 files included in the header; 10 CSS and 8 JavaScript files.
Obviously including so many files is going to have a diverse affect on performance. I should be able to eliminate some of them with a few conditional statements so they only get included on pages that need them. The rest, however, could be combined into a single merged archive file.
I found this article and script: Automatic merging and versioning of CSS/JS files with PHP (http://www.ejeliot.com/blog/72) and a followup with includes support for minimizing .js files: Adding JSMin to my CSS/JS merging script (http://www.ejeliot.com/blog/73). The code (http://www.ejeliot.com/samples/combine/combine-jsmin.phps) will need some extensive modifying for it to work on with Inspekt and unspecified files from plugins, but it's certainly worth doing at some point in the near future.
Update: This is done and will be included in Hotaru 0.5.
Obviously including so many files is going to have a diverse affect on performance. I should be able to eliminate some of them with a few conditional statements so they only get included on pages that need them. The rest, however, could be combined into a single merged archive file.
I found this article and script: Automatic merging and versioning of CSS/JS files with PHP (http://www.ejeliot.com/blog/72) and a followup with includes support for minimizing .js files: Adding JSMin to my CSS/JS merging script (http://www.ejeliot.com/blog/73). The code (http://www.ejeliot.com/samples/combine/combine-jsmin.phps) will need some extensive modifying for it to work on with Inspekt and unspecified files from plugins, but it's certainly worth doing at some point in the near future.
Update: This is done and will be included in Hotaru 0.5.