#24821 closed task (blessed) (fixed)
Quiet jQuery Migrate
| Reported by: | nacin | Owned by: | nacin |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.6 |
| Component: | Export | Version: | |
| Severity: | normal | Keywords: | |
| Cc: | Focuses: |
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)
#3
in reply to: ↑ 1
;
follow-up:
↓ 5
@
13 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
@
13 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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.