#24821 closed task (blessed) (fixed)
Quiet jQuery Migrate
Reported by: | nacin | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.6 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Export | Keywords: | |
Focuses: | Cc: |
Description
We need to minify jQuery and jQuery Migrate (and anything else). In the process, jQuery Migrate's warnings will automatically be silenced.
We could actually try to un-silence them for WP_DEBUG if we wanted to.
Change History (5)
#2
@
11 years ago
- Owner set to nacin
- Resolution set to fixed
- Status changed from new to closed
In 24781:
#3
in reply to:
↑ 1
;
follow-up:
↓ 5
@
11 years ago
Replying to nacin:
We could possibly just also bundle the un-minified jQuery Migrate file and use it when WP_DEBUG. I think that would actually be well worth the 16 KB.
Is that really that helpful, if jQuery ("core") is minified (which it is even with SCRIPT_DEBUG)?
#5
in reply to:
↑ 3
@
11 years ago
Replying to TobiasBg:
Replying to nacin:
We could possibly just also bundle the un-minified jQuery Migrate file and use it when WP_DEBUG. I think that would actually be well worth the 16 KB.
Is that really that helpful, if jQuery ("core") is minified (which it is even with SCRIPT_DEBUG)?
Yes. jQuery Migrate will print warnings (and backtraces) in the console. Any code that triggers it will be highlighted as a problem for how they use jQuery. The internals of jQuery are not really at issue.
We could possibly just also bundle the un-minified jQuery Migrate file and use it when WP_DEBUG. I think that would actually be well worth the 16 KB.