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.
- weitzman's blog
- Add new comment
- 677 reads




thank you for this info
- reply
Submitted by master (not verified) on Thu, 04/03/2008 - 18:47.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.
- reply
Submitted by Caleb G (not verified) on Mon, 03/24/2008 - 16:56.This is the module needed to do the same thing for Drupal 5: http://drupal.org/project/javascript_aggregator
- reply
Submitted by Jody (not verified) on Mon, 03/24/2008 - 16:38.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...
- reply
Submitted by NikLP (not verified) on Tue, 03/25/2008 - 13:39.