#5269 closed bug (patchwelcome)
$(document).ready and Frames
Reported by: | DMSmith | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.4 |
Component: | event | Version: | 1.3.2 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
I think I've run into a bug similar to:
http://dev.jquery.com/ticket/3988
In particular, when a page that is inside a frameset uses $(document).ready, it will not be fired until after the images load, while the same page run on its own fires the event immediately.
To reproduce this dynamic images that are noticeably slow to load are required, but I haven't been able to find any that are publicly available to include in my example. If you load the inner page (test.html) in IE6, you will see that the event it raised before both images is loaded. In the frames version (test_frame.html), though, the event will not be fired until after the images load.
Attachments (1)
Change History (4)
Changed 13 years ago by
Attachment: | jQueryReadyTest.zip added |
---|
comment:1 Changed 13 years ago by
comment:2 Changed 13 years ago by
Component: | unfiled → event |
---|
comment:3 Changed 12 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
This is because the mechanism used to determine if the DOM is ready in IE only works if the document is in the top frame. You are welcome to submit a patch for consideration, but we won’t be fixing this ourselves.
i encouter this bug too! wish it would be fixed soon