4 ms·
Facebook's like button code generator tool[1] includes the entire SDK even if you configure it to only show a like button with no other social graph features. I
by onion2k 9y ago
Facebook's like button code generator tool[1] includes the entire SDK even if you configure it to only show a like button with no other social graph features. I guess there is an argument that having every site that uses Facebook's API having the same .js file will take advantage of browser caching better but it's still irritatingly wasteful.
[1] https://developers.facebook.com/docs/plugins/like-button https://developers.facebook.com/docs/plugins/like-button
- eknkc 9y agoThe caching argument is solid though. I think it's the best cached piece of js after google analytics. Should still affect the parse time and overall responsiveness of pages though.
- ssttoo 9y agothe configurator on that page generates: 1/ sdk+like button or 2/ just an iframe with no sdk 1/ is better (proper resizing in different locales) but 2/ is always an option and it saves 60K of JS