October 05, 2006

A quick question…

Just a quick question to anyone that knows:

If I’ve got a gradient image repeated across a web page, obviously the image would load the quickest if it was onlt 1 pixel wide, but would scrolling a few hundred images up and down with the page put any more strain on a slower machine than fewer larger images?


- 3 comments by 2 or more people

  1. I don’t know, but my guess would be:

    I imagine it depends on the algorithm used by the web browser. The algorithm I would use if I were writing one would run just as quick if not quicker with a 1 pixel wide image than with a larger one. Also, this solution is quite standard, most web pages with gradients use the 1 pixel wide image solution.

    05 Oct 2006, 14:54

  2. Nick Howes

    Background images are optimised somewhat… if you had a thousand 1-pixel wide elements on your page then it probably would slow down, but the background image shouldn’t be a problem. If in doubt, make it 8-pixels wide or something; only adds a few bytes to the file size.

    05 Oct 2006, 16:21

  3. Thanks

    05 Oct 2006, 16:29


Add a comment

Name
Email
Anti-Spam Question
The what of tomorrow, today?
Anti-Spam Answer
Comment


Your IP address will be recorded. -

You can not use HTML, but you can use our special markup -

October 2006

Mo Tu We Th Fr Sa Su
Sep |  Today  | Nov
                  1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31               

Search this blog

Twitter

Google PageRank

Tags

Not signed in
Sign in

Powered by BlogBuilder
© MMXIX