Skip to main content

Bug Tracker

Side navigation

#5269 closed bug (patchwelcome)

Opened September 18, 2009 07:35PM UTC

Closed November 20, 2010 09:13PM UTC

Last modified March 15, 2012 11:57AM UTC

$(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 (3)

Changed December 08, 2009 04:07AM UTC by zzl comment:1

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

Changed June 13, 2010 05:44PM UTC by dmethvin comment:2

component: unfiledevent

Changed November 20, 2010 09:13PM UTC by snover comment:3

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.