Bug Tracker

Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#8522 closed bug (invalid)

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

Reported by: elzalem@… Owned by: elzalem@…
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.

Change History (4)

comment:1 Changed 9 years ago by Rick Waldron

Component: unfiledevent
Owner: set to elzalem@…
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

comment:2 in reply to:  1 Changed 9 years ago by elzalem@…

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

comment:3 Changed 9 years ago by addyosmani

Resolution: invalid
Status: newclosed

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

comment:4 Changed 9 years ago by Rick Waldron

#8141 is a duplicate of this ticket.

Note: See TracTickets for help on using tickets.