jQuery Dynamically load social sharing buttons

Once the JavaScript libraries are loaded, you can call functions within to reload social buttons if they were dynamically generated.
IN.init();	// linked in
FB.XFBML.parse(document.getElementById('my-element')); // facebook
$.getScript('//platform.twitter.com/widgets.js');  // twitter (best known method)
Posted by
Snippet Viewed 1721 times.

Share your jQuery code snippets:

  • Get some recognition & link back to your site.

 

Submit | Browse

Most Recent jquery snippets

Most Viewed