diff options
author | René <rene.mst@me.com> | 2013-01-30 15:00:14 +0100 |
---|---|---|
committer | René <rene.mst@me.com> | 2013-01-30 15:00:14 +0100 |
commit | d5b491f7044c2d69d620c34aced2048f41295480 (patch) | |
tree | 368c6376534c3ac3160d644e8c59ad6669f493be /.themes/classic/source | |
parent | f109abe9f6b3bd48ab8b24c85c5808dda67ef934 (diff) | |
download | my_new_personal_website-d5b491f7044c2d69d620c34aced2048f41295480.tar.xz my_new_personal_website-d5b491f7044c2d69d620c34aced2048f41295480.zip |
Async load of Facebook JS
added async switch = TRUE to loader.
According to Google PageSpeed the Facebook JS was not loaded async which blocks rendering of the page as long as the JS isn't fully loaded.
Diffstat (limited to '')
-rw-r--r-- | .themes/classic/source/_includes/facebook_like.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/.themes/classic/source/_includes/facebook_like.html b/.themes/classic/source/_includes/facebook_like.html index 74f91307..d263e6d2 100644 --- a/.themes/classic/source/_includes/facebook_like.html +++ b/.themes/classic/source/_includes/facebook_like.html @@ -3,7 +3,7 @@ <script>(function(d, s, id) { var js, fjs = d.getElementsByTagName(s)[0]; if (d.getElementById(id)) {return;} - js = d.createElement(s); js.id = id; + js = d.createElement(s); js.id = id; js.async = true; js.src = "//connect.facebook.net/en_US/all.js#appId=212934732101925&xfbml=1"; fjs.parentNode.insertBefore(js, fjs); }(document, 'script', 'facebook-jssdk'));</script> |