Bug Tracker

Modify

Ticket #8522 (closed bug: invalid)

Opened 2 years ago

Last modified 15 months ago

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:
Blocking: Blocked by:

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

comment:1 follow-up: ↓ 2 Changed 2 years ago by rwaldron

  • Owner set to elzalem@…
  • Status changed from new to pending
  • Component changed from unfiled to event

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 2 years ago by elzalem@…

  • Status changed from pending to new

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 2 years ago by addyosmani

  • Status changed from new to closed
  • Resolution set to invalid

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

comment:4 Changed 2 years ago by rwaldron

#8141 is a duplicate of this ticket.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.