[Bb-trac] [bbPress] #790: enhancement proposal "bb_inject script" to suppliment bb_enqueue_script

bbPress bb-trac at lists.bbpress.org
Wed Feb 20 10:26:49 GMT 2008


#790: enhancement proposal  "bb_inject script" to suppliment bb_enqueue_script
-------------------------+--------------------------------------------------
 Reporter:  _ck_         |       Owner:     
     Type:  enhancement  |      Status:  new
 Priority:  low          |   Milestone:     
Component:  Back-end     |     Version:     
 Severity:  minor        |    Keywords:     
-------------------------+--------------------------------------------------
 I've noticed that several plugins use bb_enqueue_script to add little
 micro scraps of javascript to bbpress.

 The problem is this can make a page have up to 20 external files in some
 circumstance - and considering that almost every extra feature in bbpress
 is a plugin, this can only get worse over time (like some wordpress
 installs). Some browsers and some servers don't even properly cache these
 kinds of files causing countless extra hits.

 Instead of just adding it as an external, I'd like to see an additional
 option on bb_enqueue_script to actually inject it into the <head></head>
 area directly or a separate function (ie. bb_inject script).

 Of course this can be done with a bit of extra code by a plugin author by
 appending to the header hook but why not make it easy and standardized.

-- 
Ticket URL: <http://trac.bbpress.org/ticket/790>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list