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 1636 times.

Share your jQuery code snippets:

  • Get some recognition & a link back to your site.
  • Create your own code library.
  • Help your fellow developers, as they have helped you.


Submit | Browse

Most Recent jquery snippets

Most Viewed