Why was I trying to speed it up on a first place. Well, some of you might be aware of the fact that me and my Family moved to Sydney. We will be here until May. My blog and my hosting is in UK. Broadband in Oz is far below random average back in UK. I was never bothered to check my own blog for response time as it was always good. Trying to load my blog main page I was shocked waiting for few minutes for it to appear on a screen.
The beginning and general enthusiasm
That’s fine. Sounds like a plan. Grab all the JS files combine them into one and then compress. Turned out more complicated than one would think.
<script src="<?php wp_js('path/to/js/file.js'); ?>"
The problem with this one is that it will only work for a files from within your current theme folder.
It would be absolutely awesome if I could apply some sort of a filter for a HTML content before it is being spit out to a browser, grab all the JS imports, create one big JS on a flight, compress it and then send to a browser.
With a knowledge I got about WordPress it seems impossible at the moment.
Failure and what I ended up with
I don’t have time for that, so … no plugins instead 🙂
Take care, Gregster
Ps. I’m not going to try to achieve anything similar with CSS :-