I will share my observations which is currently working great for me. I will mention it here so that the others looking for similar alternatives could possibly make use of this. As of now my settings seem to be working great on chrome, IE9 latest and FF latest.
Firstly, there is a setting actually in W3Total using which we can minify a javascript. For this to work go to Performance – General settings – Minify – and Enable. Then go to Performance – Minify – JS – JS file management – and add whatever js files you want to. However, this method did not work for me as some of my scripts did not seem to work while minified. I have mentioned it here nonetheless, just because there is such option available.. if someone wants to try. It may work for others if not for me.
Secondly, I use FB-likebox, like button and Gplus like button and I noticed that these social plugins are the major contributors in pulling down my GPS {Google page speed ) and Yslow scores. But then thankfully i discovered that google and facebook both provide asynchronous code for lazy loading. So i went ahead and made use of that and It made a massive difference in my scores.
I have used this asynchronous scripts as following in the footer just above the </body>.
Since the forum rules does not allow more than ten lines of code, I had to put it in pastebin. You can find the complete code in pastebin, that which I currently use on my site.
For the facebook script to work you may want to put the following declaration into the header.
<xmlns:fb="https://www.facebook.com/2008/fbml" xmlns:og="https://opengraphprotocol.org/schema/">
Now all you need to do is paste the following appropriate codes to your template wherever you want the buttons or boxes to render.
G-PLUS :
<div class="g"><div class="g-plusone" data-size="medium"></div>
FB :
<fb:like href="https://southcast.in/" layout="button_count" show_faces="false" width="100" height="21" action="like" colorscheme="light" font="trebuchet ms" allowTransparency="true"></fb:like>
I am no expert coder or anything but after applying these codes my scores are pretty good now as I also use other online tools to assess my site’s performance.
P.S – Do not forget to clean your cache one you have made the changes to see the results in the frontend. You may also want to test the changes in different environments because every browser uses unique parsing and rendering parameters.