[wp-trac] [WordPress Trac] #32358: Add unminified jQuery to core for better debugging with SCRIPT_DEBUG enabled

WordPress Trac noreply at wordpress.org
Wed Mar 2 15:05:53 UTC 2016


#32358: Add unminified jQuery to core for better debugging with SCRIPT_DEBUG
enabled
---------------------------------------------+-----------------------------
 Reporter:  CrazyJaco                        |       Owner:
     Type:  feature request                  |      Status:  assigned
 Priority:  normal                           |   Milestone:  Future Release
Component:  Script Loader                    |     Version:
 Severity:  normal                           |  Resolution:
 Keywords:  has-patch ongoing needs-refresh  |     Focuses:
---------------------------------------------+-----------------------------

Comment (by dotancohen):

 Replying to [comment:20 iandunn]:
 > I don't think that's always true; sometimes I run into situations during
 plugin development where I get errors like `TypeError: n is undefined`.
 Knowing the real variable name and line number would give some insight
 into the underlying problem.

 This is what brought me here. One cannot debug without knowing exactly
 where the error was thrown. The minified versions obscure that
 information, specifically the line number and the variable names.

 In regards to increasing download size, the uncompressed jQuery 2.2.1 file
 is under 300 Kib:
 http://code.jquery.com/jquery-2.2.1.js

 That will compress to well below 100 KiB. Adding 100 KiB to the 7.4 MiB
 (zipped) or 6.8 MiB (tarball) Wordpress 4.4.2 is beyond negligible. If
 size really were a concern, the rest of Wordpress (PHP) could be minified
 with an order of magnitude better result.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/32358#comment:21>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list