Why the Facebook SDK isn't running in asynch mode ?

  • I have huge delays by Facebook SDK JS because is running in Sych mode...


    I want to make it asynch and not blocking all the DOM rendering...


    Now the JS CODE is .....


    Code
    if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/en_US/sdk.js


    The asynch must be ....



    Code
    if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.async = true;js.src="//connect.facebook.net/en_US/sdk.js

    The question is....
    Where I can find the source code in WBB files to change it ?

  • WCF/WBB doesn't use the Facebook-SDK. If the source code of your forum contains that, you must have included this by yourself (e.g. as footer code) or from a plugin.

  • You have right.


    The problem is that I didn't add any code by my self.
    Probably a Plugin is the the problem, but I can't find which one of all I use.


    Tested many plugins I suspected, but didn't found the source yet.


    BTW, the full code is the next... (I use nginx pagespeed)


    Code
    <script type="text/psajs" orig_index="61">(function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=839587286137139&version=v2.2";fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));</script>