When it comes to managing a website and using external scripts many people seem to make the same mistake time and time gain.
When you are adding third party scripts such as those from Addthis, then you will see that they want to retrieve a different script for each widget. Well if you leave all of those script sources, then you are wasting your time, and increasing your load time.
This issue can easily be fixed and all you need to do is retrieve that script.
So if i have 2 scripts that say
I don't need that for each of my widgets. All you need to do is place it once on the webpage, this way you have less http requests and you will have a much faster load time.
Now some of you will try to delete the original script source on the widget, and you will call it quits. This is dumb, and it does not work. To properly place the script place it right above your this will load it for all of those widgets since it is loading before those widgets need it. If I had it like this.
And then I placed my script source, it wont load because it is trying to retrieve the script that does not exist.
While doing this it is best to check your Google page speed, and they will want you to use asynchronous loading on these scripts because it hinders load time of the webpage. However doing this here can prevent certain widgets from loading, so only do it when you are using a single time item. So if you need to use the same script more than once it might not work, especially on the first widget because it is loading when it can and generally those scripts and elements are loaded before the script is actually needed.
The process is fairly easy, but it is not allowed by certain elements such as advertisement because you are directly altering the script and this can get you banned by the ad network.