Skip to main content

Bug Tracker

Side navigation

#10120 closed bug (invalid)

Opened August 23, 2011 07:22PM UTC

Closed August 24, 2011 01:44PM UTC

$(document).ready() fires after images load in IE in iframe

Reported by: anonymous Owned by:
Priority: low Milestone: None
Component: core Version: 1.6.2
Keywords: Cc:
Blocked by: Blocking:

I loads frame.htm page inside an iframe in patent.htm. In that case in IE image load event fires before $(document).ready(). In below example, alert 2 is fired before alert 1.


<html xmlns="">
<iframe id="frame" src="frame.htm"></iframe>



<html xmlns="">
    <script src="Scripts/jquery-1.6.2.min.js" type="text/javascript"></script>

        $(document).ready(function () {
<img id='img1' onload='alert("2");' src="" />
Attachments (0)
Change History (2)

Changed August 24, 2011 07:21AM UTC by Sajith Kahwatta <> comment:1

If I browse frame.htm page directly, It fires alert 1 first and then alert 2 in correct order.

Changed August 24, 2011 01:44PM UTC by timmywil comment:2

component: unfiledcore
priority: undecidedlow
resolution: → invalid
status: newclosed

That is not out of the question in this case. The image may already be loaded before document ready.