How to Load Like and Share Button on Facebook Faster
Almost every blog or website has a "Like", "Share" or "Subscribe" button.
As you may know, the Facebook social media code is loaded synchronously with your web page assets by default.
This will increase your site's load time and worsen your SEO score. It's just not SEO, but it also ruins the user experience.
I'm sure the Facebook social media button is important, but not like your actual code should be displayed first. Many blogs or websites have higher page load times due to Facebook's default code.
Using the Facebook code asynchronously will help you load a web page 0.5 to 1.5 seconds faster. This is what you need to load your Like, Share or Subscribe button faster.
Here is the code I received from Facebook developer for like and repost.
Now all I have to add is to follow one line in my code which will help the buttons load faster.
js.async=true;
So the modified code would be:
Isn't it easy?
Update: The new code snippets offered by Facebook don't require the above as they already include the async script you can see below.
I'm sure you like it when your web page loads faster and I hope this helps you.
Did you enjoy reading the article? How about sharing with the world?
What do you think of this article?