]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
#332 Set async attribute to true for the script that brings in the LinkedIn API
authorMohammed Buttu <mohammedbuttu@gmail.com>
Mon, 16 May 2011 16:55:54 +0000 (12:55 -0400)
committerMohammed Buttu <mohammedbuttu@gmail.com>
Mon, 16 May 2011 16:55:54 +0000 (12:55 -0400)
plugins/linkedin/popcorn.linkedin.js

index bf29770c8444049966ef62f333efbaa4cb29cfbb..0ffdded3367fbdb0f8e5e0e5dd5452c73a8c986d 100644 (file)
@@ -62,6 +62,7 @@
           var linkedinAPIScript = document.createElement( 'script' );
           linkedinAPIScript.setAttribute( 'src', "http://platform.linkedin.com/in.js" );
           linkedinAPIScript.setAttribute( 'type', "text/javascript" );
+          linkedinAPIScript.setAttribute( 'async', 'true' );
           root.appendChild( linkedinAPIScript );
         }());
       }