Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CSS (display: none;)



On Sep 21, 2004, at 11:11 AM, Jeppe Utzon wrote:
It works as expected in Gecko-based browsers, but Webcore/Safari doesn't load content which has been tagged with the display: none; property. It seems to me that Gecko's way of handling this is the correct way and I filed a bug report on this to Apple. But then I had doubts and thought I'd let people on this list know about it wrt. which of the two approaches (Gecko's vs. Webcore's) you feel is the correct one.

This is likely related to a 'fix' that the Safari team had to make with the way Safari handled images referenced in CSS. IIRC, Sprint's site had a CSS that referenced a ton of images that weren't used on every page, and Safari was very slow loading the site because (in an attempt to be helpful) it was preloading the referenced images.


Safari was changed to not load images until it needs them, which seems like the only 'safe' route. Do I expect the browser to download images which are display:none? I'm not sure...I think I don't.

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webcore-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webcore-dev/email@hidden

This email sent to email@hidden
References: 
 >CSS (display: none;) (From: Jeppe Utzon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.