Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#6241 closed enhancement (fixed)

Use jQuery onload call when scripts require jQuery

Reported by: azaozz Owned by:
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.5
Component: Administration Keywords: has-patch
Focuses: Cc:


Many scripts that call addLoadEvent() require jQuery. Better to call jQuery(document).ready directly.

Also several inline scripts were calling addLoadEvent() when they only had to be moved a bit down in the html to work correctly.

Attachments (1)

js-onload.patch (5.8 KB) - added by azaozz 13 years ago.

Download all attachments as: .zip

Change History (2)

13 years ago

#1 @westi
13 years ago

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

(In [7325]) Switch from addLoadEvent to jQuery(document).ready. Fixes #6241 props azaozz.

Note: See TracTickets for help on using tickets.