A lot of WP JS is minified and therefore it's hard to be analyzed in the Console. Is there any way to have all scripts uncompressed?


Yes there is, from Debugging in WordPress codex, you need to define SCRIPT_DEBUG in wp-config.php to force WP to load the dev versions of the scripts:

define('SCRIPT_DEBUG', true);
| improve this answer | |
  • but this works only, if the script is in readable form inside the plugin or theme. If is not, then use the button on Webinspector in Chrome and create with one click a readable form. – bueltge Jan 27 '13 at 19:53
  • Keep in mind that while core WordPress includes these dev versions of scripts, not all plugins or themes do. – Steve Jan 27 '13 at 20:09
  • Thanks! I'm only interested in WP dev versions of scripts :) – Paul Jan 27 '13 at 20:51
  • Also there is no non-minified version of backbone.js for some reason. – Wyck Jan 27 '13 at 23:21
  • Apparently core devs don't want to increase core size by adding unminified js files into core – Sisir Jan 8 '16 at 7:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.