Title: Double JavaScript injection
Last modified: February 14, 2017

---

# Double JavaScript injection

 *  [Stefano Lissa](https://wordpress.org/support/users/satollo/)
 * (@satollo)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/double-javascript-injection/)
 * Hi,
 * the debug bar js is injected twice, one time in the main plugin code and another
   one in the debug_bar_js class. The second is wrong and does not declare the jquery
   dependency.
 * See the line
 * wp_enqueue_script( ‘debug-bar-js’…
 * in the file
 * class-debug-bar-js.php
 * Thank you, Stefano Lissa.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Konstantin Obenland](https://wordpress.org/support/users/obenland/)
 * (@obenland)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/double-javascript-injection/#post-9132610)
 * Thanks for the report Stefano!
 * Debug Bar actually uses two scripts that are fairly similarly named, `debug-bar.
   js` and `debug-bar-js.js`. Are those the two that you see there?

Viewing 1 replies (of 1 total)

The topic ‘Double JavaScript injection’ is closed to new replies.

 * ![](https://ps.w.org/debug-bar/assets/icon.svg?rev=3050748)
 * [Debug Bar](https://wordpress.org/plugins/debug-bar/)
 * [Support Threads](https://wordpress.org/support/plugin/debug-bar/)
 * [Active Topics](https://wordpress.org/support/plugin/debug-bar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/debug-bar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/debug-bar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Konstantin Obenland](https://wordpress.org/support/users/obenland/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/double-javascript-injection/#post-9132610)
 * Status: not resolved