Disagreement with co-web developer about speed difference of height and width specified in image tags as opposed to in the css
May 7, 2008 3:36 PM
Subscribe
I am having a disagreement with a co-web developer I'm working with. He's insisting that having image width and height specified for images in the image tags is going to make an enormous difference in how fast this database driven site will render, while I feel that having the height and width called in the css for these images is enough. The site is very fast.
Let me clarify... I'm only talking about the thumbnails of images on the site (the data), all other images used for design etc. have image heights and widths specified. I feel that even if we lose a nano-second in speed (we have dedicated servers and enough bandwidth to land us on the moon) we gain so much in ease of updating the site. The client changes their mind all the time and if we need to change the thumbnail size, I can do it in 2 second in the global css file, as opposed to much longer to track down all the instances of img tags in the code. I also feel we'll gain a nanosecond from slightly less code bloat.
I see a lot of older articles on the web that mention adding image height and width tags as a help to optimize one's site, but if we're doing EVERYTHING else in the name of speed, is this issue really relevant today with users having faster and faster internet connections?
We can't seem to come to any agreement on this... anybody have any enlightened and educated opinions about this, circa 2008?
posted by semidivine to computers & internet (21 comments total)
4 users marked this as a favorite
Whip up a page with, say, 100 images. then clear your cache and load the page. Try it both ways and see which renders more quickly.
posted by chrisamiller at 3:56 PM on May 7