Tutorial Async Sharing Buttons (G+, Facebook, Twitter)
Some of these services already (smartly) provide their scripts in an async fashion, this just combines them into more efficient, organized, ...

https://iskablogs.blogspot.com/2014/03/tutorial-async-sharing-buttons-g.html
Some of these services already (smartly) provide their scripts in an async fashion, this just combines them into more efficient, organized, and understandable code.
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],
frag = doc.createDocumentFragment(),
add = function(url, id) {
if (doc.getElementById(id)) {return;}
js =
(function(doc, script) {
var js,
fjs = doc.getElementsByTagName(script)[0],
frag = doc.createDocumentFragment(),
add = function(url, id) {
if (doc.getElementById(id)) {return;}
js =