Bug 52847 - Overridden css background images are unnecessarily loaded
Summary: Overridden css background images are unnecessarily loaded
Status: RESOLVED DUPLICATE of bug 24223
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 525.x (Safari 3.2)
Hardware: PC Windows XP
: P2 Major
Assignee: Nobody
URL: http://www.wsj.com
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-20 15:02 PST by luying.pan
Modified: 2011-01-20 22:28 PST (History)
2 users (show)

See Also:


Attachments
Screen shots of the Inspector showing the CSS rule being overriden, but the background image was still downloaded, and the actual HTML code that produces the problem (10.89 MB, application/msword)
2011-01-20 15:02 PST, luying.pan
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description luying.pan 2011-01-20 15:02:31 PST
Created attachment 79656 [details]
Screen shots of the Inspector showing the CSS rule being overriden, but the background image was still downloaded, and the actual HTML code that produces the problem

See my attachment. Basically if you try to load wsj.com, there are many images that are css background-images which are actually overridden (not used) in the css, but are still downloaded by webkit. IE, Firefox, and Chrome do not do this. I've verified this behavior in both Safari, and Arora, which means it's not an issue with any specific port.

The attachment contains screen shots from the inspector and the actual HTML code which produces the problem.

hat_arrowBlue.gif is the file which should not have been downloaded. But if you look at the resource screen shot, you'll see the file was indeed downloaded. 

This is bad for bandwidth-limited environments.
Comment 1 Alexey Proskuryakov 2011-01-20 21:10:44 PST
Does this still happen for you with WebKit nightly builds from <http://nightly.webkit.org/>? I think that this has been fixed already.
Comment 2 luying.pan 2011-01-20 22:22:55 PST
Thanks. It does look like it's been fixed. Do you know which build it was fixed in and what's the original bug id?
Comment 3 Alexey Proskuryakov 2011-01-20 22:28:22 PST

*** This bug has been marked as a duplicate of bug 24223 ***