Ticket #3617 (closed bug: invalid)
$(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
Change History
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.


Example used