David Gilbertson
Sep 5, 2017 · 1 min read

Maybe I missed something, but isn’t your article’s title 100% false?

Only 6% of the top 10,000 sites hit the Facebook CDN, so it’s 16% of their code that is from Facebook (if all of those hit the Facebook CDN to get the SDK, rather than, say, a 2 KB like button image).

So that’s not 16% of the average site. It’s 16% of 6% of sites.

So on average 0.96% of the code across those 10,000 sites is from Facebook. You’ll update your title to say that, right?

On the flip side, if you wanted to be more sensationalist, you should point out that the Facebook SDK has a cache-control max-age of 1200 (20 minutes) — so a user is not likely to be using it from cache, and most likely will be downloading it again and again. That is, for those 6% of sites that use it.

HackerNoon.com

#BlackLivesMatter

Why Facebook Like buttons account for 16% of an average website’s code
2.3K
9

Ben Regenspan

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store