Sunday, August 01, 2010

Website Performance: Don’t Let Third Parties Slow You Down

Recently a presentation was made by 2 Googlers (Arvind Jain and Michael Kleber) @ Velocity 2010 where they talked abnout how third party code can slow a website.

Third party code (like Google ads, Digg widget etc.) usually includes an external script. Since browsers block rendering while fetching JavaScript, this third party code also blocks rendering of your page.

Analyse your page with and without this third party component to understand the impact that it has on your site.

If you have an option to choose from multiple vendors, then choose the one which has least impact on your page.

Example: The new Google Analytics code loads JavaScript asynchronously to ensure minimal impact on page loading.

No comments: