Google’s new +1 button is the widget du jour, with numerous installations since its launch on June 1. However because it seems, the +1 button might make pages as much as two seconds slower, in line with efficiency advisor Aaron Peters.

Since Aaron documented his performance audit on his weblog, Google has responded by saying that they’re working exhausting on fixing the +1 button’s efficiency issues. However that doesn’t change the truth that there are lots of people on the market who’ve unwittingly inserted a bit of code on their pages that could possibly be dragging down their web site’s efficiency.
The parable of “only a single line of Javascript”
Simply because a widget supplier is trusted and well-known, that doesn’t imply you possibly can assume they’re constructing quick instruments. These instruments usually get touted as “only a single line of Javascript.” I’m right here to inform you that “only a single line of Javascript” is a meaningless phrase that third-party software distributors have invented to make their apps sound simple and low-impact.
As an instance, right here’s what the uncustomized +1 button’s code snippet seems to be like:
<!-- Place this tag in your head or simply earlier than your shut physique tag -->
<script kind="textual content/javascript" src="http://apis.google.com/js/plusone.js"></script>
<!-- Place this tag the place you need the +1 button to render -->
<g:plusone></g:plusone>
That’s it. However that little snippet of code comprises one severe efficiency fake pas (recommending that you just place the tag within the head, the detrimental penalties of which Aaron explains additional in his submit). It additionally features a typo – the file is named over HTTP, however can be served over HTTPS – that may trigger a redirect (learn: delay) in how the web page renders, most notably for folks utilizing IE8.
I don’t need you to suppose that I’m singling out Google for criticism. I’ve collaborated with of us at Google a number of occasions. They’re sensible, conscientious folks. They do good work. So let’s take a look at one other well-known widget: the Fb “Like” button. Ecommerce advisor Matthew Ogborne did his own audit of the “Like” button, and instantly eliminated it from his website when he realized it was making his pages 1.34 seconds slower.


These are simply two examples. The web is rife with extra — corporations who, with the very best of intentions, are creating widgets that bung up your web page load. Taken individually, it’s simple to brush this off. What’s a second right here, or a number of hundred milliseconds there, in any case? Not a lot, till you do the maths and understand that you just’re including a number of seconds of load time to your pages.
(As an apart, if you wish to be taught the load occasions for a handful of frequent third-party instruments — together with the Digg widget, Google Analytics, and Quantcast – check out Steve Souders’s P3PC project.)
Why you have to care about website velocity
John Ekman has already written a wonderful submit right here about the impact of page speed on your Google search ranking. However website velocity has additionally been linked to just about each different metric you care about: bounce fee, conversion, web page views, buyer satisfaction, and income. Whether or not you’re speaking about mega-giants like Amazon (Powerpoint obtain) and Shopzilla (report) or smaller “mortal” corporations like Artbeads (case examine) and Edmunds (report), they’ve all discovered the identical factor: once you make your website quicker, you enhance conversions by wherever between 1% and 16%.


The best way to calculate whether or not a cool new third-party software goes to assist or damage conversions
So… given the significance of creating web sites as quick as potential, and given the potential for third-party widgets to leech efficiency, how many individuals actively examine the impression of button on their website? (If you happen to answered “Virtually none,” give your self a prize.)
Third-party content material is right here to remain. Adverts, social media widgets, advice engines — these are all right here to remain, and with good cause. General, they add worth and generate income. However you have to know methods to separate those which can be going that can assist you from those that might damage you.
Right here’s methods to conduct a easy cost-benefit evaluation once you’re evaluating potential third-party instruments:
- Carry out an A/B take a look at of your website, with and with out the software, in a real-world surroundings. Generate waterfall charts for each exams (for extra on waterfalls, I wrote this submit some time again that explains methods to learn them), and determine how lengthy the third-party objects take to load. Be aware these benchmarks.
- From the software vendor, get the quantity for the common conversion fee bump skilled by different websites that use the software.
- Utilizing Aberdeen’s extensively accepted efficiency stat {that a} 1-second page delay equals a 7% loss in conversions, calculate the potential internet conversion achieve or loss. For instance, if a software slows down web page load by 2 seconds, which means a 14% conversion loss. But when that very same software guarantees a 20% conversion enhance, then that’s a internet achieve of 6% (not together with the price of buying the software).
If you happen to discover {that a} widget has the potential to decelerate your website past what is appropriate, let the seller know. There’s a superb chance that they’re not conscious of the issue, and like Google, they’ll be completely satisfied for the suggestions to allow them to repair the issues.
Closing suggestions: Optimize your pages and speak to your advert company
And when you’re optimizing your third-party content material, get your builders to, wherever potential, prioritize web page parts in order that non-essential content material hundreds final moderately than first.
This extends to advertisements as nicely, if you may get away with it. In case your advert company insists that advertisements stay a precedence, then ask them how they make sure that they’re optimizing the advertisements they serve to maximise efficiency. Sluggish-loading advertisements are a significant reason for excessive bounce charges.
You’re not doing your self or your advertisers any favors by lowering your web page views.