Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

bart (450)

Journal of bart (450)

Friday February 09, 2007
04:43 PM

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

[ #32363 ]

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.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • 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 [getfirebug.com]. 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 [yuiblog.com], part two [yuiblog.com].