Asynchronous Javascript is for Web the best thing since sliced bread


Video made from Identicons generated from Lat/Long from the bugGPS by Simon Lewis´ Big Labs Java programThis post was triggered by a recently announced asynchronous Google analytics tracking code, and then I thought to my self - it was about time it was brought to mainstream.

When something loads asynchronously on a web page, that means it does not block other content from loading and your browser can load other things.

This is especially important on today's sites where amount of Javascript code is becoming excessive. In other words, asynchronous loading = faster page loads = happier visitors (= more revenue).

Implementing new Google analytics asynchronous tracking code is as easy as removing the old one and placing the new one, and now you are safe to put it in the header as well. And because it will load now a bit sooner than the old one, it might catch few more visits that your old code missed as the visitors quit the page before it was fully loaded.

My baby startup Cleveritics will also use a full asynchronous tracking code.

Useful references:

http://www.artzstudio.com/2008/07/beating-blocking-javascript-asynchronous-js/


Suggested reading:


Posted in: SEO
TAGS:, , , , , , , , , , , , , , ,
leave a comment.

Comments:

One Comment

  1. Omer Greenwald
    Feb 26th, 2010

    Very nice feature indeed.
    However, by placing the old GA code at the very bottom, the entire page (almost) is loaded fast so the user barely feels any slow down by this code.
    I think that the great benefit of the new plugin, is its ability to track user gestures before the the entire page loads.

Have your say

Your email is never published nor shared. Required fields are marked *

*
*

Subscribe without commenting

About

vladimir prelovac Vladimir Prelovac is CEO of Prelovac Media, a computer engineer by profession and an adventurer by state of mind. more +


"I would love to change the world, I just don't have the source code yet."

Services

Manage multiple WordPress sites

Built for WordPress enthusiasts, ManageWP helps you manage all your WordPress sites from one central location.

Books

WordPress Plugin Devleopment Book Read my book WordPress Plugin Development: Beginner's Guide

Published by Packt Publishing, available online through Amazon.