Bug Tracker

Modify

Ticket #11314 (closed bug: duplicate)

Opened 3 months ago

Last modified 3 months ago

In IE, jQuery's presence causes other scripts using 'defer' to not run at all

Reported by: dave@… Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.7.1
Keywords: Cc:
Blocking: Blocked by:

Description

In IE7 and IE8, when jQuery 1.4.3 - 1.7.1 is present in a page, an unrelated script that has a defer attribute won't execute at all, if that script takes a while to load.

Example:  http://brondsema.net/tmp/jquery_script_defer.html

  • jQuery 1.4.2 does not exhibit this behavior. Something introduced in 1.4.3 triggers it.
  • IE9 does not exhibit this behavior. Something was fixed in IE9
  • if the 'defer' script loads quickly (e.g. before domready or something like that), then it will execute.
  • Dynamically inserting a script DOM element that has defer=true does not exhibit this behavior. It is only when using the script tag and defer attribute in the HTML.

Change History

comment:1 Changed 3 months ago by dmethvin

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

comment:2 Changed 3 months ago by dmethvin

Duplicate of #11310.

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.