Riad Benguella: Debugging WordPress Scripts and Styles

With the move to more JavaScript and Styles in WordPress admin pages and editors, I spend some time debugging what styles and scripts are being loaded on a given page. (Specially important if you’re working on blocks, or JavaScript rendered admin pages)

To help with that I use a small vibe-coded tool. It helps understanding why a script or style was enqueued on a given page.

For each script (or style) it gives:

  • The uncompressed size.
  • If it was enqueued explicitly.
  • Which ancestor script was enqueued explicitly causing the current one to be loaded in the page as well.
  • What is the direct parent script.

And it presents all of that in a digestible list.

How to use it

  • Just drop the file in your WordPress plugins folder (or load in another existing plugin)
  • Append ?debug_script=true to the url of the admin page that you want to debug.

That’s it, for a more complete debugging solution, consider checking the excellent Query Monitor plugin.

More Posts


Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 80

Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 81

Gutenberg Times: My WordPress, WordPress 7.0, Gutenberg 22.7, and AI Experiments — Weekend Edition 361

Hi, This week, we saw many updates in WordPress Core with two Betas and three security releases. Your auto-update email folder got plenty of traffic if you are managing more

More News


Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 80

Warning: Attempt to read property "ID" on string in /home/u286651190/domains/prdailywire.com/public_html/wp-content/plugins/aioseo-image-seo/app/Image/Image.php on line 81

How I Display WooCommerce Reviews Anywhere in WordPress (& Boost Sales)

PR DailyWire is part of the Zaivio community. Zaivio users and subscribers can run articles and feature stories about their small business ventures in this digital publication.

Contact
Email: info@zaivio.com

©2025 ZAIVIO LLC. All Rights Reserved.