I am not in to javascript at all, but I got a WordPress site and a page uses below javascripts in it:
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
<script src="http://static.ak.fbcdn.net/connect.php/js/FB.Share" type="text/javascript"></script>
<script type="text/javascript" src="http://platform.linkedin.com/in.js"></script>
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
I wanted to combine them all and make one javascript file and call them from my own server (I know how to call it <script type='text/javascript' src='<?php bloginfo('stylesheet_directory'); ?>/name.js'></script>), but I don't know how to combine and make one javascript file for all of them. Could you please help me achieve it? Any help would be highly appreciated. Thanks in anticipation.
P.S. I tried making a file like below:
src='http://platform.twitter.com/widgets.js'
src="http://static.ak.fbcdn.net/connect.php/js/FB.Share"
src="http://platform.linkedin.com/in.js"
src="https://apis.google.com/js/plusone.js"
and then saved it as social.js, but it didn't executed as needed.
The main motive to do this is to minimize the HTTP requests and fasten the loading time of the site.