Title: [Plugin: Debug Bar] Patch to load scripts in footer
Last modified: August 19, 2016

---

# [Plugin: Debug Bar] Patch to load scripts in footer

 *  Resolved [Jason Penney](https://wordpress.org/support/users/jczorkmid/)
 * (@jczorkmid)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-debug-bar-patch-to-load-scripts-in-footer/)
 * I noticed some ‘undefined’ errors in the console preventing Debug Bar from working
   when my Use Google Libraries plugin was enabled.
 * It seems to be related to how WordPress was handling nested dependencies when
   script A (set to load in the header), depends on script B (set to load in the
   footer), which depends on script C (set to load in the footer).
 * When UGL is active it’s possible that script B has no URL because script C contains
   C+B (jquery-ui), and I think this is the cause of the issue. In this case script
   C is loading in the footer after script A which loaded in the header. If I can
   verify that’s what is happening with a simple test case I’ll file a ticket, but
   for now I tried modifying Debug Bar to enqueue the scripts in the footer, and
   that seemed to fix the issue.
 * [http://pastebin.com/jRD0v0zE](http://pastebin.com/jRD0v0zE)
 * [http://wordpress.org/extend/plugins/debug-bar/](http://wordpress.org/extend/plugins/debug-bar/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Peter Westwood](https://wordpress.org/support/users/westi/)
 * (@westi)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-debug-bar-patch-to-load-scripts-in-footer/#post-1962964)
 * I’m including this change in the next version of the Debug Bar plugin.
 *  Thread Starter [Jason Penney](https://wordpress.org/support/users/jczorkmid/)
 * (@jczorkmid)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-debug-bar-patch-to-load-scripts-in-footer/#post-1963008)
 * Thanks. I’m still seeing some weirdness with script dependencies in WP 3.1, but
   what’s left doesn’t seem Debug Bar related.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Debug Bar] Patch to load scripts in footer’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [Jason Penney](https://wordpress.org/support/users/jczorkmid/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-debug-bar-patch-to-load-scripts-in-footer/#post-1963008)
 * Status: resolved