Bug Tracker

Modify

Ticket #3617 (closed bug: invalid)

Opened 5 years ago

Last modified 5 years ago

$(window).load() event waits CSS file media="print" indefinitely

Reported by: JuniorZ Owned by: brandon
Priority: major Milestone: 1.3
Component: event Version: 1.2.6
Keywords: opera, media, print, document, ready Cc: JuniorZ
Blocking: Blocked by:

Description

The problems seems to be related to how Opera deals external CSS files loading.

If you have a CSS file, with the media="print", the event never happens.

I've tested in Opera/9.62 (Windows NT 5.1; U; pt-BR) Presto/2.1.1 and had the problem. Firefox, Internet Explorer and Safari (Google Chrome) are OK.

Attachments

test.html Download (673 bytes) - added by JuniorZ 5 years ago.
Example used

Change History

Changed 5 years ago by JuniorZ

Example used

comment:1 Changed 5 years ago by flesler

  • Cc JuniorZ added
  • Keywords opera, media, print, document, ready added
  • Status changed from new to closed
  • Resolution set to invalid
  • Priority changed from critical to major

The problem is that you bind the onload handler inside the document.ready.

That assumes that the latter will happen first.

You need to do the $(window).load() outside document.ready.

Note that rhe ready event is to be bound on the document, not the window, still, that wouldn't cause any bug, just mentioning.

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.