Combine javascript?
Hi,
I'm using the latest version of Atahualpa and I'm trying to speed up my website. I use the speedtest at http://tools.pingdom.com/ and it seems my number one priority is to combine javascript and css. "bfa_ata_file=js" is the most delay-causing script, apparently. How do I do this with atahualpa in an easy way? I tried installing the w3 total cache plugin, but that caused my site to take 10x longer to load. I uninstalled it and went back to WP super cache, that's working but it doesn't have a built in javascript compressor. Any thoughts? :) PS. My sites are http://blogg.danielwerner.se and http://geekglobe.com |
If you search for minify on wordpress.org there are several plugins that show up that you could test.
|
Does atahualpa support minifying or are there any cons with this feature?
|
I have never tested. I would just install some and see how they work.
|
As I understand it minifying is independent of a theme and what it does is remove all the comments and extra spaces from the CSS and JS. However if you are using inline CSS they don't seem to work (at least my test with better WP minified didn't do anything to the Atahualpa CSS when it was internal.
I just ran a set of test cases varying the 'better WP Minify' plugin off and on, 'CSS: External file or inline' to internal/external and 'CSS: Compress' to YES/NO here are teh results test 1 CSS Internal not compressed - Better WordPress Minify disabled characters 52,823 words 5,977 lines 2,332 test 2 CSS Internal compressed - Better WordPress Minify disabled characters 32,228 words 4,794 lines 238 test 3 CSS Internal not compressed - Better WordPress Minify active characters 52,827 words 5,983 lines 2,331 test 4 CSS Internal compressed - Better WordPress Minify active characters 32,232 words 4,80 lines 237 test 5 CSS External not compressed - Better WordPress Minify disabled characters 7,524 words 818 lines 237 test 6 CSS External compressed - Better WordPress Minify disabled characters 7,524 words 818 lines 237 test 7 CSS External not compressed - Better WordPress Minify active characters 7,524 words 818 lines 237 test 8 CSS External compressed - Better WordPress Minify disabled characters 7,524 words 824 lines 236 as you can see, the plugin did nothing. What changed was having the CSS internal/external - the trade off there being if the CSS is internal it loads for each page the visitor goes to, If it is external it CSS is loaded once, BUT 2 calls to the server are needed. So it is a trade off. Now using a caching plugin is a whole different story. |
All times are GMT -6. The time now is 06:57 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.