Social Button BFFs

Stoyan Stefanov (Facebook)
Web Performance Mission City B4
Average rating: ****.
(4.00, 6 ratings)

Adding social widgets such as the Like button, Twitter or Google+ buttons helps drive traffic and engagement to your web site. But it does come at the price: more HTTP requests, more JavaScript to parse and execute. This session shows how you can minimize the cost of including 3rd party code to your pages.

In this session you’ll learn how to use the asynchronous snippets to load third party widgets, whether or not the 3rd party provider advertises it. You’ll see how you can minimize the code required to include a widget and have their impact on your pages minimal and yielding to your main content.

Photo of Stoyan Stefanov

Stoyan Stefanov


Stoyan Stefanov (, @stoyanstefanov) is a Facebook engineer. Previously at Yahoo! he was the creator of the online image optimization tool and architect of YSlow 2.0. performance tool. Book author (JavaScript Patterns, Object-Oriented JavaScript), contributor (Even Faster Web Sites, High-Performance JavaScript) and speaker (Velocity, JSConf, Fronteers, Ajax Experience).

Comments on this page are now closed.


dyn dns
01/02/2013 5:05am PST

Great tips on social buttons Stoyan Stefanov. Have you heard of automatically tweeting from keynote? Combining email marketing with social media is very important. You can get email deliverability stats with Dyn Dns.


Picture of Stoyan Stefanov
Stoyan Stefanov
07/06/2012 5:43pm PDT


Sponsorship Opportunities

For information on exhibition and sponsorship opportunities at the conference, contact Gloria Lombardo at

Media Partner Opportunities

For media partnerships, contact mediapartners@

Press and Media

For media-related inquiries, contact Maureen Jennings at

Contact Us

View a complete list of Velocity contacts