Skip to content

Instantly share code, notes, and snippets.

@caiotarifa
Last active December 23, 2015 16:49
Show Gist options
  • Save caiotarifa/6664409 to your computer and use it in GitHub Desktop.
Save caiotarifa/6664409 to your computer and use it in GitHub Desktop.
Modernizr.load to asynchronous load Facebook, Twitter and Google+.
Modernizr.load([
{
load: '//platform.twitter.com/widgets.js'
}, {
load: '//apis.google.com/js/plusone.js'
}, {
load: '//connect.facebook.net/en_US/all.js',
complete: function() {
return FB.init({
appId: '482807518397041',
status: true,
cookie: true,
xfbml: true
});
}
}
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment