SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Guru
    Join Date
    Jan 2010
    Posts
    633
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Speed and Loading of Graphics

    Sitepoint Members,
    Do png files take longer to download? I have a very small 350 byte png file on my site and it takes the same amount of time to load into a browser than a 2 kb jpg file I have on my site. How can that be?

    Thanks,

    Chris

  2. #2
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,791
    Mentioned
    34 Post(s)
    Tagged
    2 Thread(s)
    The file type should NOT affect the transfer speeds. However, servers do sever data in PACKETS. This essentially makes the transfer process QUANTUM. Given the same condition, any file <= to the packet size travels at the same rate as any other file <= to the size even if one is bigger than the other.

  3. #3
    SitePoint Guru
    Join Date
    Jan 2010
    Posts
    633
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Dresden,
    I forgot about that, but isn't one packet 1160 bytes? 350 bytes is smaller than that and 2kb is larger.

    Thanks,

    Chris

  4. #4
    Community Advisor silver trophybronze trophy
    dresden_phoenix's Avatar
    Join Date
    Jun 2008
    Location
    Madison, WI
    Posts
    2,791
    Mentioned
    34 Post(s)
    Tagged
    2 Thread(s)
    From some notes I found somewhere.. they may be outdated.

    While an IP packet can be as large as 65,535 bytes, packets are fragmented so as to fit into the path MTU. MTU = "maximum transmission unit". The path MTU is simply the lowest of all of the MTUs on all of the links between the end points. Each node along the way informs the next of it's MTU in the header.

    Most/all IP packets will encounter an Ethernet link somewhere along the way, if nowhere else at the user's premises. Therefore, for all practical purposes, the maximum size of an IP packet (or, technically, fragment) on the Internet is 1500 bytes.

    Subtracting the header, that leaves 1480 bytes for data payload.
    What I gathered from that is that an Ethernet link becomes the bottle neck for all practical purposes. BUT if you are testing within a network then you mayhave different situations in which you have no bottleneck, or a larger bottleneck. Just a possibility.

  5. #5
    SitePoint Guru
    Join Date
    Jan 2010
    Posts
    633
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Dresden,
    I found something that helps graphics load faster - don't have that favicon line in the <head> twice. I have validator software (T.V.) but it didn't catch it.

    Thanks,

    Chris


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
  •