General discussion

Locked

Download time of a webpage

By davoud ·
Hi,

Suppose I have a webpage , One time I set an Image as an image in the page and another time I set it as a background image. If all other specs are the same, will there be any differences between the download time of the page?

thanks for your input

This conversation is currently closed to new comments.

15 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Can't imagine why there

by Tony Hopkinson In reply to Download time of a webpag ...

would be a difference in the time to download. If's in the cache it's no time at all after all.
Rendering said image is of course a very different matter.

Collapse -

I can..

by Jaqui In reply to Can't imagine why there

if you image map the image then you have all the extra code, which can slow down download times.

if you are crazy enough to use an imagmap site on a 28.8 dialup then it's gonna take forever.

and yes, I have seen that last, from a website designer yet.. 15 minutes to download front page of website. cause of a tiff imagemap.
I sent him an email, pointing out that the huge imagemap file, with the horendous download time are excellent arguements to not hire him to build a site, keep up the good work, my business is booming.

~l~

never heard back from him.

Collapse -

Erh he asked

by Tony Hopkinson In reply to I can..

as a background or an image tag.
No difference in download time, of course whether he's talking the time to actually transfer the file vs the time to download and render it is currently an open question.

Collapse -

by davoud In reply to Erh he asked

@ Jaqui: LOL..that was a nice story. and no I do not want to image map the image.

@Toni, what I mean is downloading the webpage not the image.

Collapse -

Who's Toni ??

by Tony Hopkinson In reply to

The time to download any web page, depends on the volume of information, the speed of the connections and possibly the number of places the content is sourced from.
I suspect though you ara talking about the time you make the request, to it completely displaying in your browser window though ?

Collapse -

by davoud In reply to Who's Toni ??

Quote by Tony Hopkins
Who's TOni??


oops! sorry about that. I appologize. :)


Quote by Tony Hopkins
I suspect though you ara talking about the time you make the request, to it completely displaying in your browser window though ?


Yes that is right.
Collapse -

if it's

by Jaqui In reply to

the exact same image file then there will be no difference in download time.

Collapse -

AS Jaqui said

by Tony Hopkinson In reply to

no difference in download times. Rendering times is different thoough.
If you had two pages one with the image as background and one with just one image tag, then it depends on how the image is drawn on the page.
Essentially if the image is resized, or tiled in the case on background dpending on how much of a change is involved will have an impact.
An image tag with a height and width exactly that of the image vs say it being stretched to fit the size of the window in a background property could involve a fair amount of pre-processing.
When a browser renders, the more information you can give it in terms of the size and the position of the elements the less work the renderer has to do. When you give a size even with some stretching to do, the browser can allocate space for it and then continue building the page while waiting for the image to arrive, if you don't give it one, then it has to wait for the image to be downloaded so it can know the size and allocate the space.
Sticking a 50k jpg on your page is bad idea, 50 1k ones with without size information is worse.

Collapse -

I know...

by Jaqui In reply to Erh he asked

but it does have a slight relevancy. as when you use an image as background you tend to start adding more content on top, since the image isn't taking up page space any more.

the "extra" data can slow it down.

it's also a funny story, that helps people to remember to look at the hardware details in a site design, if the client is going to host on a dialup box in thier office, then smaller and lighter files will offset the slow connection.
basic site rather than multimedia.

( good example of site design not working right:

http://www.linuxformat.co.uk/

the discussion forums there specially.. even with high speed connection 5 to 10 minutes for page refresh )

Collapse -

by davoud In reply to I know...

Well I will not add any extra data and actually I am looking for a way to bring down the download time of a webpage to make it faster to download when browsing it with dialup connection.

That is why I opened this thread to see if a bgimage will make any difference. I actually hade posted another thread up here about converting JPEG and other image files to html. I did alot of search unfortunately There is nothing like that (there is but the quality is very poor). Maybe in the future somebody will come up with a program for this purpose.

BTW the link that you provided works fine for me. I am using high speed though, I could download it almost instantly.

Back to Web Development Forum
15 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums