Skip to main content

Bug Tracker

Side navigation

#8522 closed bug (invalid)

Opened March 14, 2011 02:14PM UTC

Closed March 14, 2011 05:35PM UTC

Last modified March 14, 2012 05:59PM UTC

document.ready firing twice in IE8 if there is an iframe

Reported by: elzalem@hotmail.com Owned by: elzalem@hotmail.com
Priority: undecided Milestone: 1.next
Component: event Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:
Description

if you have an iframe in your page (such as the facebook Like script), and u use $(document).ready(), it will fire twice, once when ur page is ready, another time when the iframe loads.

Attachments (0)
Change History (4)

Changed March 14, 2011 02:29PM UTC by rwaldron comment:1

component: unfiledevent
owner: → elzalem@hotmail.com
status: newpending

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket!

Additionally, test against the jQuery 0 GIT version to ensure the issue still exists.

This may be a duplicate of #7352

Changed March 14, 2011 05:17PM UTC by elzalem@hotmail.com comment:2

status: pendingnew

Can you please close this ticket? It's not jQuery's fault.

The problem was with facebook's XFBML (for the Like button) creating an iframe that points to the same URL as the parent document. InternetExplorer was throwing up causing document.ready to be fired again causing a stack overflow

Replying to [comment:1 rwaldron]:

Thanks for taking the time to contribute to the jQuery project! Please provide a reduced jsFiddle test case to help us assess your ticket! Additionally, test against the jQuery 0 GIT version to ensure the issue still exists. This may be a duplicate of #7352

Changed March 14, 2011 05:35PM UTC by addyosmani comment:3

resolution: → invalid
status: newclosed

Closing as the original ticket submitter has confirmed this issue isn't due to a problem with jQuery itself.

Changed April 02, 2011 12:47AM UTC by rwaldron comment:4

#8141 is a duplicate of this ticket.