Support » Plugin: Query Monitor » What enqueued a specific script?

  • I’m trying to figure out why some scripts are enqueued on a given site (wp-polyfill, react-dom and tons others, if you’re curious).

    Is there a way to use Query Monitor to determine what exactly is enqueueing them? (ie which plugin, which dependency, or which part of core?)

    I checked the documentation but couldn’t find anything, and I don’t *think* this is currently available on the Scripts tab, is it?


Viewing 1 replies (of 1 total)
  • Plugin Author John Blackbourn


    WordPress Core Developer

    It would be great to know, wouldn’t it? This isn’t currently possible but I played around with the idea a long while ago. The dependency system in WP doesn’t have hook for determining this so QM would need to override the global $wp_scripts and $wp_styles and provide a class which does have hooks in the right places.

    I’m tracking this issue here:

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.