SmartOptimizer - handy dynamic script for reducing size css and js files |
[eluser]Lone[/eluser]
Just came across the following PHP script that has some awesome potential in reducing your page load times by automatically compressing and caching CSS, JS files and a few other tricks. The best part is when you use htaccess for it that it is totally seamless and no change to path calls needed at all. http://farhadi.ir/works/smartoptimizer Have a look and give it go and let me know any opinions on it. Just on testing it myself on a demo page I reduced the following: JS - 44KB to 21KB (including jQuery library) CSS - 19KB to 8KB Has some other nice features such as compressing multiple css/js files into a single file (lower http requests). Heres the full list from the site: Quote: * SmartOptimizer increases your website download speed by reducing the size of JavaScript and CSS files approximately up to 80% or even higher.
[eluser]Tom Glover[/eluser]
Nice features, where can we get it from? EDIT: Dippy me just seen the link!
[eluser]Lone[/eluser]
Heres a link to how we have set it up in our install in CI: http://lab.pxwebdesign.com.au/codeignite...e-loads/17 The special part is that we are using the standard CI cache directory along with hiding the folder in the applications folder.
[eluser]a&w[/eluser]
I tried merging my .htaccess with what you had set up but I get a misconfiguration error. Have you removed index.php from your url or could you post how you would go about it? |
Welcome Guest, Not a member yet? Register Sign In |