Width of repeating backgrounds

Better yet, a repeating background 100px wide so the actual file doesn't need to be redrawn 1000 times wide, or a 1px file that is probably a smaller file size, but the browser will need to redraw it a lot more

+2


a source to share


2 answers


The standard image width used for this type of thing is 1 px. The smaller the image, the less data there is to transfer over the network, which means less waiting time for the page to load.



If you will be repeating some piece of data anyway, why not make it as small as possible?

+1


a source


A small file that the browser will have to repeat. There is almost no computer processing required to repeat a 1kb file, but repeating a 10-15KB file would be more taxable I think. Less is better.



+6


a source







All Articles