I have a website that has multiple external javascript files, I would like to reduce these to increase performance.
Some of the external scripts include typekit, google analytics, linkedin js api, twitter api and some others. With these third party external javascript files what is the best approach to including them without increasing HTTP requests, keep in mind some of these libraries like to be loaded in the head tag ( typekit ).
I have tried downloading, concatenating and hosting them locally but they don't seem to play nice with my minified javascript or with other vendors javascript. Is there a specific approach to this problem.
I have looked into libraries like requirejs but I'm not sure if this would solve this problem.
defermany of the scripts (like GA, twitter, etc), which would give the same "speedup" as using something like yepnope/requireJS/whatever.