The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 802 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.1 (Linux)
File Line Function
/showthread.php 802 errorHandler->error



Current time: 11-14-2019, 01:02 AM Hello There, Guest! (LoginRegister)

Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why are some resources being downloaded twice?
08-29-2010, 01:38 AM (This post was last modified: 08-29-2010 01:41 AM by richbradshaw.)
Post: #1
Why are some resources being downloaded twice?
Been referring to this site for ages, and thought I should probably make an account and join in the fun!

Test result: http://www.webpagetest.org/result/100828_3R2D/

I have used some CSS sprites, particularly one called backgrounds.png. I have used the two images in that sprite once each, using the following CSS.

#mainheader, #background {
background:#000 url('/media/img/sprites/backgrounds.png') no-repeat top left;
}

#mainheader {
background-position: 0 -643px;
}

#background {
background-position: 0 0;
}

Why does IE download backgrounds.png twice? I also have the file PIE.htc being downloaded twice...

(Any other optimisations are welcome!)

Ah, seems that CSS3 PIE causes this problem on elements that it's applied to. Useful to know. Still, any other optimisations are welcome!
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Why are some resources being downloaded twice? - richbradshaw - 08-29-2010 01:38 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)