Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 5 years ago

#6241 closed enhancement (fixed)

Use jQuery onload call when scripts require jQuery

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

Description

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 18 years ago.

Download all attachments as: .zip

Change History (2)

@azaozz
18 years ago

#1 @westi
18 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.