WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #25244, comment 9


Ignore:
Timestamp:
01/02/2015 06:22:40 AM (7 years ago)
Author:
ericlewis
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25244, comment 9

    initial v1  
    33WordPress-specific source JS files (i.e. un-minified versions) can be loaded by toggling the SCRIPT_DEBUG constant ^[https://github.com/WordPress/WordPress/blob/4.1/wp-includes/script-loader.php#L69 1]^.
    44
    5 Some third-party scripts (e.g. Backbone.js, all jQuery UI modules) will only load the unminified version if loaded from the `src` directory^[https://github.com/WordPress/WordPress/blob/4.1/wp-includes/script-loader.php#L70 2]^.
     5Some third-party scripts (e.g. Backbone.js, all jQuery UI modules) will only load the unminified version if loaded from the `src` directory^[https://github.com/WordPress/WordPress/blob/4.1/wp-includes/script-loader.php#L70 2]^. Otherwise, the minified version of the script is loaded.
    66
    77I propose we bring in the source and unminified versions for all third-party modules into the `src/` directory, and copy both in the build process. After that, modify the script loader to respect SCRIPT_DEBUG to the tee.