Load Facebook Plugin Asynchronously
-
Hello,
I read the Load Facebook Like Box Asynchronously:
https://diywpblog.com/load-facebook-like-box-asynchronously/
Since i’m using the Facebook Official Plugin, the number of resources increased, and in P3 Plugin says that the plugin takes about 6-7 seconds to load and that make the web load a little bit slower.
I would like to know how can i do to check if the script is loading Asynchronously?
<div id=”fb-root”></div>
<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.async=true; js.src = “//connect.facebook.net/en_GB/all.js#xfbml=1&appId=xxxxxxxxxxxxx”;
fjs.parentNode.insertBefore(js, fjs);
}(document, ‘script’, ‘facebook-jssdk’));</script>
- The topic ‘Load Facebook Plugin Asynchronously’ is closed to new replies.