JavaScript Load LinkedIn Asynchronously

Loading the LinkedIn JavaScript API asynchronously requires a slightly different method than LinkedIn's standard method (which is not HTML 5 compliant).
$.ajax({
	url: '//platform.linkedin.com/in.js?async=true',
	cache: true,
	dataType: 'script',
	complete: function(data) {
		IN.init({ api_key: 'YOUR_KEY', authorize: true });
	}
});
Posted by
Snippet Viewed 1786 times.

Share your JavaScript code snippets:

  • Get some recognition & link back to your site.

 

Submit | Browse

Most Recent javascript snippets

Most Viewed