Ticket #2978 (closed bug: invalid)
Possible $().ready() bug in Safari 3.1.1
|Reported by:||jmar777||Owned by:|
|Keywords:||document, ready, Safari, CSS||Cc:||jmar777@…|
Just started following the tickets here, so sorry if this is a dupe.
I say "possible" bug because I am not sure what the specs are on this issue. Most browsers seem to load any external style sheets prior to executing the $().ready() method - however, this does not seem to be the case in Safari 3.1.1 (tested in Windows). This inconsistency was unexpected to myself, and I would assume to others as well. Needless to say, this causes problems if a script/plugin is dependent on said style sheets.
I am led to believe that the CSS is the culprit by two observations:
- Such scripts execute successfully if run after the document.onload event.
- Such scripts execute successfully if the CSS is inlined.
For a specific example, my Kwicks plugin ( http://www.jeremymartin.name/examples/kwicks.php?example=1) pulls bits of information from an external style sheet, and therefore fails in Safari 3.1.1 (if executed by $().ready()).
I have only tested this with 1.2.3 and 1.2.6, which both exhibited this behavior.
Thanks for all the great work!