Improving page delivery speed - javascript aggregation

The webkit team published a terrific article about the terrible effect that multiple external javascript files can have on browser performance. Drupal6 has a terrific feature called javascript aggregation which I encourage folks to enable on your production sites. It is found on the admin/settings/performance page. While you are there, enable css aggregation as well.

If you use an external ad network, I can almost guarantee that they are using just the sort of bad behavior that this article describes. If you suspect that your ads are slowing down your web pages, try browsing with javascript disabled. If it suddenly gets fast, your ad provider is a problem. Unfortunately, ad networks have been using external includes and document.write for years despite performance concerns. I get the impression that chaning their architecture is hard or undesireable so they choose to slow down the pages of their clients.

thanks

thank you for this info

Submitted by master (not verified) on Thu, 04/03/2008 - 18:47.
You're right

In the past couple of days I've been on two sites that the external images/scripts were effectively crippling the site. For one of them I actually had to resort to using the Firefox web developer plug-in's (Images->Disable Images->External Site Images) just to get the page to load at all.

Submitted by Caleb G (not verified) on Mon, 03/24/2008 - 16:56.
And for Drupal 5

This is the module needed to do the same thing for Drupal 5: http://drupal.org/project/javascript_aggregator

Submitted by Jody (not verified) on Mon, 03/24/2008 - 16:38.
Yeah...

I posted something similar quite some time ago, but I don't think I was on the Planet feed at the time.

http://www.kinetasystems.com/blog/speed-up-drupal-5-load-times-with-java...

Submitted by NikLP (not verified) on Tue, 03/25/2008 - 13:39.

Powered by Drupal, an open source content management system

About

Moshe WeitzmanMoshe Weitzman is a long time Drupal developer (since 2001). He manages groups.drupal.org and the Organic Groups module. His tiny company, Cyrve, specializes in data migration into Drupal. Read about his past projects (e.g. NY Observer) and contact him.

Moshe lives in Boston USA with his wife and 2 girls.

My Photos

Think!

Change Congress

Support CC - 2007

Support Obama 2008

Stop the Spying - EFF

Syndicate

Syndicate content