[wp-trac] [WordPress Trac] #32358: Add unminified jQuery to core for better debugging with SCRIPT_DEBUG enabled
WordPress Trac
noreply at wordpress.org
Mon Jul 11 10:50:48 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
Component: Script Loader | Release
Severity: normal | Version:
Keywords: has-patch ongoing needs-unit-tests | Resolution:
| Focuses:
------------------------------------------------+--------------------------
Comment (by swissspidy):
Replying to [comment:26 superpoincare]:
> There are plugins which move jquery to the footer or minify them with
other files or both.
>
> Won't adding jQuery.noConflict() to wp_add_inline_script() complicate
things?
Moving to the footer is not a problem. The `jQuery` name obviously needs
to be kept after minification, otherwise everything would break. So that's
not an issue either. The real question is: Do these plugins properly
support `wp_add_inline_script()`? For example, WordPress combines scripts
and styles in the admin, and `wp_add_inline_script()` works fine there.
Plugins should really support that too and I think they do. Otherwise we
would have heard by now.
Feel free to test the patch with your favourite caching/minification
plugin :)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32358#comment:27>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list