Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Repeating Background Image Size
August 9, 2007, 10:59 am
rate this thread
My site design has a repeating background image that scrolls down the
left hand side of the page, it's a mere 256px by 16px. However, the
nature of the design means that the image would work if it was only
1px in height.
A long long time ago I read on a site about optimizing web pages that
said to _not_ use images 1px high for repeating backgrounds because
browsers struggle to show so many instances of an image on the screen.
In these days of 256mb ram minimum on even old machines does this
still apply (if it ever did) or can I use this image.
Say my viewport is 800px high, a 16px high image is rendered by the
browser 50 times but a 1px high image is rendered 800 times.
Anybody have any thoughts?
Re: Repeating Background Image Size
I used a 2x2 gif one time wherein 2 of the 4 pixels were transparent, and
ie6 struggled just rendering that. When you scrolled the page, the part
with this background like kind of "stuck" for a sec or 2. On the other
hand, Mozilla (-pre Firefox) had no trouble with it.
Half lies are worth twice as much as whole lies.