Hi,
I've a doubt
First of all I know that's the asyn way no freeze the browser
what's the best way for include script in a page
for caching purpose syn or asyn ?
syn
asynPHP Code:<script src="//connect.facebook.net/en_US/all.js"></script>
I think it's quite irrelevant but ........PHP Code:(function(d){
var js, id = 'facebook-jssdk', ref = d.getElementsByTagName('script')[0];
if (d.getElementById(id)) {return;}
js = d.createElement('script');js.id = id;js.async = true;
js.src = '//connect.facebook.net/en_US/all.js';
ref.parentNode.insertBefore(js, ref);
}(document));
Thanks in advance




Reply With Quote


Bookmarks