use.perl.org, on a slow server? Mmm, not exactly...

bart on 2007-02-09T21:43:43

When I looked at the Javascript used by this site, copy/pasted it from Firefox' Web Developer info page into a text editor window, I found it had a staggering 13500 lines of Javascript code, and saves down to a file of well over 400k. 400k of Javascript! For a site that is relatively sparsely sprinkled with Javascript. That is... Well, that is nuts, no other word for it. I'm thinking that, if you'd just open the stock library (which is one from Yahoo), extract the functions you use, and put them in a new file, you'd probably get along with a library file of maybe 10k to 20k, I think.

The site occasionally takes a long time to load, load times of 10 to 20 seconds are no exception, on a broadband connection. Most of the loading time is spent on images.use.perl.org, which is the domain where the Javascript library resides. I see this happen at least once every few days, so the amount of bandwidth I must be spending on this site each month, must be a bit on the high size.

And I do feel sorry for the people with a slow internet connection.


And that's just use.perl...

Dom2 on 2007-02-10T10:12:04

Slashdot has exactly the same code base. Think how much bandwidth they're using up! Even better, I don't think that they're using gzip compression...

BTW, the best way to check out this stuff is to install firebug. It has a view that lets you see all the items on a page, and how long they took to load.

The Yahopo UI team did a good investigation: part one, part two.