Bug Tracker

Opened 10 years ago

Closed 9 years ago

Last modified 8 years ago

#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)

jQueryReadyTest.zip (482 bytes) - added by DMSmith 10 years ago.

Download all attachments as: .zip

Change History (4)

Changed 10 years ago by DMSmith

Attachment: jQueryReadyTest.zip added

comment:1 Changed 10 years ago by zzl

i encouter this bug too! wish it would be fixed soon

comment:2 Changed 9 years ago by dmethvin

Component: unfiledevent

comment:3 Changed 9 years ago by snover

Resolution: patchwelcome
Status: newclosed

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.

Note: See TracTickets for help on using tickets.