• Resolved Jason Penney

    (@jczorkmid)


    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://wordpress.org/extend/plugins/debug-bar/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Peter Westwood

    (@westi)

    I’m including this change in the next version of the Debug Bar plugin.

    Thread Starter Jason Penney

    (@jczorkmid)

    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.