Dumpy Digg, Flabby Flickr
The whole ‘Web 2.0’ thing seems to have made JavaScript cool again, but some sites are getting a bit toolkit happy.
Take Digg, for example, which loads something like 17 JavaScript files totalling almost 200KB. Now that’d be fine for a complex, highly-interactive application, but someone simply reading the home page will notice few signs of anything fancy. Some things on the left expand if clicked on, and there are scripted Bury Story dropdowns. If you’re logged in you can Digg a story without leaving the page. That’s about it, everything else seems to load another page.
Flickr’s home page doesn’t use any script files, but photo pages load 21 separate bits of JavaScript, which is just crazy. Again, there isn’t a vast amount of interactivity going on, and even on a very fast connection both sites are noticeably slowed by their script gluttony.
Don’t get me wrong, toolkits such as Prototype and the Yahoo! User Interface Library are incredibly useful, and optimisation always has to be cautiously weighed up against developer efficiency, but using dozens of files to add a few simple touches to a site is overkill. At the very least you need to optimise key pages and combine/prune script files to speed things up and cut your bandwidth bill.
Fri 14th Jul 2006, 9:22pm GMT
Filed under: Client-side Coding, Rants and Grumbles, Web
Comments
Comments are now closed for this entry.
Matt Round’s company blog, covering web development, media, technology and pretty much anything else.
- Web Sites
- Good-looking, effective, accessible sites.
- Multimedia
- Logos, Flash games, animation and illustration.
- Advice
- Help with strategy, planning and getting noticed.
