> Development > Why Facebook Like buttons account for 16% of an average website’s code

Facebook Likes

Posted on: 10/02/2017| Source: http://medium.freecodecamp.org

A recent data survey shows that 16% of the code on an average website is owned by Facebook. This is mostly because they give devs a whole bunch of tools in addition to that fun Like button. If you are trying to include Facebook comments on your website, you will absolutely have to load the Facebook SDK. However, “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.”

According to data collected by BuiltWith.com, 6% of the top 10,000 most high-traffic sites load content from Facebook’s servers. For the vast majority of them, that content is likely Facebook’s Javascript SDK, a huge block of code that...[Read More]
Recent Posts