Opened 11 years ago
Closed 11 years ago
#2454 closed defect (bug) (fixed)
jQuery dependent javascript in the header
Reported by: | bassjobsen | Owned by: | 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)
Note: See
TracTickets for help on using
tickets.
Sure. Let's try to do this in 2.5.