Using a FB Like Button?

Often, using a FB widget can kill page speed, taking my perfect score of 100/100 for mobile and dropping that to 90ish. There is no escaping the fact that the Facebook SDK is a massive bunch of code that needs to be dowloaded to your site for something as simple as a like button. And that means slowing down the page.

Facebook could have chosen to release small chunks of code for each widget, but according to medium, "one must also include code that is used only for comments, video embeds, login buttons, and other unrelated features. Facebook could have opted to distribute much smaller files for including only single features such as Like buttons, but has a business goal of encouraging sites to use as many FB-provided features as possible."

They also go onto say this... "If you want to use the Like button, stop and reconsider. Facebook no longer displays Likes of a page prominently (or, in most cases, at all) on user timelines. It’s better to use a simple custom Share button or link, and as a side benefit, doing so will prevent Facebook from tracking all visits to your page and interfering with the privacy of your users. Sites that have eliminated the Like button have failed to identify any negative impact of doing so when it comes to Facebook traffic referrals." So in a nutshell, if you want to increase speed, consider removing like buttons. And even FB comments if those aren't giving you many traffic referrals.

quotes from medium

pic1

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi.

At vero eos et accusamus et iusto odio dignissimos ducimus qui blanditiis praesentium voluptatum deleniti atque corrupti quos dolores et quas molestias excepturi sint occaecati cupiditate non provident, similique sunt in culpa qui officia deserunt mollitia animi.