Skip to main content

Bug Tracker

Side navigation

#3617 closed bug (invalid)

Opened November 17, 2008 01:17PM UTC

Closed November 17, 2008 06:09PM UTC

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

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 (1)
  • test.html (0.7 KB) - added by JuniorZ November 17, 2008 01:18PM UTC.

    Example used

Change History (1)

Changed November 17, 2008 06:09PM UTC by flesler comment:1

cc: → JuniorZ
keywords: → opera, media, print, document, ready
priority: criticalmajor
resolution: → invalid
status: newclosed

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.