16% of the code on the average site belongs to Facebook
medium.com
medium.com
Here is a scan where the 200KB Facebook sdk.js is being transferred (62KB gzipped) just to display some like buttons. Repeat for other networks like Twitter (114KB) and Google: https://urlscan.io/result/fa422ac0-3b2c-4ba7-a182-31921cc61e.... Remember: Even if you don't mind the transfer of 200kB, that volume of JavaScript will take some time to parse, especially on mobile.
[1] https://developers.facebook.com/docs/plugins/like-button
Should still affect the parse time and overall responsiveness of pages though.
1/ is better (proper resizing in different locales) but 2/ is always an option and it saves 60K of JS
I've not clicked through the article, but before I saw any comments here, I thought it was claiming that 16% of the HTML on the average site was devoted to Open Graph Stories markup, like / share buttons, and other embedded FB widgets.
(But that was already primed in my mind, as a couple of days I'd been examining the source of a website that had a ludicrously huge Head section, and it was filled with Facebook sharing markup.)
An example feature the SDK gives you is the ability to subscribe to an event that's triggered once the user successfully adds a Like, there's all kinds of extra stuff like that buried in there that you wouldn't expect when you just want to add a Like button.
A.K.A. the "like this page in order to enable the download link below" API. I wish they'd never made it; it has so many evil use-cases and I can't think of a single non-evil one (that wouldn't be better served by just async querying aggregate data.)
Additionally it cannot just do `Array.prototype.map = ...` because fiddling with the host page's globals is a sin. Hence every post-ES3 method call is wrapped in a local `ES()` function. Oh the joys of third-party javascripting :)
I wonder how much is in a typical person's cache though.
Website 'Like' buttons on the other hand, are useless, tacky, cheap and chunky. Nobody cares how many likes your webpage has. The number means nothing because your website might be one month old with '2k likes', or two years old with '500 likes'. Makes zero difference to any visitor what that number is. It's not any measure of performance or anything.
This is what I tried telling the project managers at my previous work, but of course such advice fell on deaf ears, and in went the FB crap.
The overall number may have no value (although social capital theory would suggest otherwise), but when a user looks at a Facebook page and sees "5 of your friends Liked this page" with a list of who they are, that has a huge impact on how they think. It's like having a personal recommendation. That's worth a lot. Likes do have value.
I don't like them either but you'd be crazy by not integrating it on a website that you're trying to funnel organic, social traffic to.
By all means have the basic FB share link, as found on every Youtube video, along with other social media services. But the actual Facebook widget is not what should be installed on websites, and FB should kill it dead.
Sounds like you need a browser extension to handle "liking" the current page you're on. Not all websites have the Like button, so it makes no sense to assume a website Like button is "plan A" in any social traffic strategy.
Further more, websites have many pages. It's impractical to install a Like button for every discrete piece of content everywhere on the site, and everywhere on the Internet.
Facebook Like buttons DO NOT belong on every web page of every site on the Internet, and the widget should go the way of Flash. (I'd sooner keep Flash than FB javascript).
Google have said Facebook likes aren't treated as a ranking signal but your page showing up on newsfeeds will bring in more likes and more backlinks.
> Makes zero difference to any visitor what that number is. It's not any measure of performance or anything.
You don't think a large number of likes makes a page look more newsworthy than a page with zero likes?
I completely understand the newsfeed point, which is why I have no argument against social sharing buttons on websites - the non-scripted kind that link to various services from Twitter to Reddit to FB. If the user wants to share the site, they will use this method, or they may copy the link, or have some other way to like the page such as a browser extension.
"Like us on Facebook" is what Likes are about. You go to Facebook, and you Like something - a post, page or item. It's a Facebook thing, not a "everything in the universe" thing.
I disagree. Remember those visitor counters on most hobbyist websites from back in the day? Facebook likes are, are their core, that.
It's basically herd mentality.
As a final thought... At least Twitter invented a word for their sharing action, "retweet". Facebook just stole "like" and "thumbs up". I don't remember those things being up for sale.
It turns out, it was because I had blocked *.facebook.com.
I do not like that major websites will break, if Facebook is blocked. My business with Seamless had nothing to do with Facebook. Facebook does not need to know that I am ordering food. Especially if I am not even logged in.
Why can't I simply say "no" to all interaction with Facebook?
Also, try firewalling Google Analytics, and see how much of the web breaks.
Always surprises me how often the React devtools icon lights up indicating a React-based site. Maybe there are false positives, never investigated.
I don't really follow who's using React, but was surprised to see it on Dropbox.com.
Wonder how high the percentage would be if it included the library code for all FB projects?
Actually, you can import facebook comments directly into your sites internal commenting system. There's an opensource plugin in wordpress to do this. Then visitors aren't bogged down by loading facebook comments, since those are already integrated in.