Quote:
Originally Posted by dekaz
I've read that it would load the pages faster if it did have those on your img tags but I'm also thinking wouldn't it create a bigger file size on the page? I personally don't use it because I want to make my html page filesize as small as possible.
|
What is this 1996? You're worried about the extra weight of like 24 extra characters spattered a few times on your page. Kudos to you!
The original reason that it was suggested that you put in the pic size -- from my understanding (which BTW is so deep that it is deeper than the sea-floor travelled by the mantis - if you know that reference I'll send you a sticker!) -- is back in the day when pages loaded much slower then they do now the text would pop-up and then the images would load afterwards. The size of the image would go from 0 (unloaded) to the new demension, so suddenly all the text would start shifting around to make room for this new image that was just beginning to get loaded. If a coder put in the pic's demensions then the text would load in the correct place to begin with and pages wouldn't be shifting after the 4 minutes it took to finally load the hamster dance gif that you thought you were so clever for copying and placing on your home page.
Nowadays, your editors (and I'm
not talking about GUI editors mind you) should automatically do this for you and if you are still building pages in notepad then I will also assume you are building your banners in MSPaint which makes you a winner.
</sarcasm>