The other option for js is dynamically load the scripts depending on the content, e.g. http://requirejs.org/
This option is becoming more popular but I like the idea of just having one file - unless your application has massive amounts of js.
It can be the right way to go if there’s some large libraries that are only needed for a couple of pages. Things like charting libraries could be good to put into their own js like analytics.js and include it dynamically.
[FONT=verdana]Just out of curiosity, what do you mean by “Google page speed”? I’ve never come across the term before.
I’ve never bothered to minify my pages, because I’m not convinced it does all that much good. Then again, as I have no experience of it, I might be totally wrong about that. Bootfit, I’d be interested to hear how you get on with it, and whether you do in fact improve your “Google page speed” - or any other performance improvement.
minifying(removing white space) is one of the lesser optimisations. Combining files though can make a considerable difference to load times, keeping the number of HTTP requests down is the #1 rule. You could find a lot of before / after timed tests on the net.
I think what you’re really saying is that you want your pages to load faster?
You said “minifying(removing white space) is one of the lesser optimisations”. Yes, that’s what I thought as well. As you say, there are lots of other ways of optimising a page that would bring better results.
Just for fun, I might try it one day, and try to measure the result, but I don’t see it as a high priority.
Well yeah - they already load pretty quick and are optimised to a high degree but as the site I’m working on is a personal project that I have the time to dedicate to, I’m trying to get as high a score possible on Google page speed. I know the big G places emphasis on page speed for it’s SERPs so anything I can learn from this can only benefit me in the future.
PageSpeed Service fetches content from your servers, rewrites your pages by applying web performance best practices and serves them to end users via Google’s servers across the globe.
PageSpeed Service is currently offered free of charge to a limited set of webmasters during this trial period. Pricing will be competitive and details will be made available later. You can request access to the service by filling this web form.
Now we know why Google started using loading speed as a ranking criteria, huh?
This whole things sounds plain stupid. If you are on a decent web host, you are not going to save any time, and if you do it won’t be much to even justify this silliness.