Skip to:
Content

bbPress.org

Opened 11 years ago

Closed 11 years ago

#2454 closed defect (bug) (fixed)

jQuery dependent javascript in the header

Reported by: bassjobsen's profile bassjobsen Owned by: johnjamesjacoby's profile johnjamesjacoby
Milestone: 2.5 Priority: normal
Severity: normal Version: 2.4
Component: General Keywords:
Cc:

Description

BBPress adds some jQuery dependent javascript to the header which breaks the defer loading (cause a javascript error, see also: http://wordpress.org/plugins/wp-defer-loading/).
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 @johnjamesjacoby
11 years ago

  • Milestone changed from Awaiting Review to 2.5

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

#2 @johnjamesjacoby
11 years ago

  • Owner set to johnjamesjacoby
  • 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.