SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Mar 2008
    Location
    Sterling, CO
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    http:// request?

    I'm not sure where to post this.

    I've been wondering how much information can be sent in one http request? I've been reading that the less http request a website has the faster it loads. But what about tiny image compared to a larger image, does it take as long to request a tiny image as it does a larger image? How big can an image or file get before it takes two request to load it all?

    Thanks

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,837
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    It only takes one request to get each file no matter how big the file is so the overhead of requesting files is a fixed amount per file.

    The other overhead in requesting the files is in finding the servers they are on which involves a domain lookup for each separate server that they are on (meaning that loading them all from the same server is faster).

    It is the download times for each file that are affected by their size. So 100k of files takes approximately 30 seconds or so on a dial-up connection (by which time most visitors will have left so you needn't worry about sizes bigger than that)

    The time to request each file is usually insignificant compared to the download times unless you have hundreds of files in the page.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  3. #3
    SitePoint Addict
    Join Date
    Mar 2008
    Location
    Sterling, CO
    Posts
    275
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks,

    That cleared it up for me. So like if your page is long (lengthwise) we could put better images on bottom because their (the customer) isn't going to get there before it loads?

    Also, while I'm thinking of it. I was reading that some like Google somehow "loads" the images for the second page (in the background) while the viewer is still on the first page. Do you know where I can find out how to do that, as I forgot where I read it at?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •