ClassicPress PetitionsClassicPress Petitions
This is a read-only archive. Post or comment on the live version of this page on our forums.

Break large js files in small pieces when WP_DEBUG_SCRIPTS is enabled

September 23, 2018 · 19:35 · Iulian Palade
Description

Maybe we can break the huge js files in smaller pieces when the WP_DEBUG_SCRIPTS is enabled. It is hard to look into files like:

wp-admin/js/customize-controls.js
wp-includes/js/media-views.js

especially when the documentation is poor

Voters
Tags
Request: Modify feature
Discussion
Code Potent

Are you sure you're using the correct constant? I use SCRIPT_DEBUG to unminify the JS code.