Asynchronous script loading sounds good, but do you need to do this in the built-in <script> ?
How to load it when working from the onload page?
function init() { (function() { var e = document.createElement('script'); e.src = document.location.protocol + '//connect.facebook.net/en_US/all.js'; e.async = true; document.body.appendChild(e); }()); } window.addEventListener("load", init, false);
Perhaps the Facebook method ensures that all script-blocked browsers process the script, but you can pretty much guarantee that the same browsers process the script with the nice abstraction function addEventListener / attachEvent.
source share