Skip to:

Opened 4 years ago

Closed 4 years ago

#2454 closed defect (fixed)

jQuery dependent javascript in the header

Reported by: Bass Jobsen Owned by: John James Jacoby
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.4
Component: General Keywords:


BBPress adds some jQuery dependent javascript to the header which breaks the defer loading (cause a javascript error, see also: Javascript will be insert by setup_actions in bbpress/templates/default/bbpress-functions.php

add_action( 'bbp_head', array( $this, 'head_scripts' ) );

Would it be possible to make this script independent of jQuery or otherwise insert it with wp_enqueue_script and set its dependency of jQuery?

Change History (2)

#1 @John James Jacoby
4 years ago

  • Milestone changed from Awaiting Review to 2.5

Sure. Let's try to do this in 2.5.

#2 @John James Jacoby
4 years ago

  • Owner set to John James Jacoby
  • Resolution set to fixed
  • Status changed from new to closed

In 5172:

Remove theme-compat head_scripts and move JS into separate files for each condition. Fixes #2454.

Note: See TracTickets for help on using tickets.