Commit 0fd4dd0
committed
chore: upgrade jQuery and introduce Migrate for safe modernization
Upgrade jQuery from 1.7.1 to 1.9.1 and jQuery UI from 1.8.18 to 1.9.1 to
bridge toward a modern codebase. While 1.9.1 is still outdated by today's
standards, it introduces critical deprecation warnings and improves
compatibility with newer APIs, serving as a necessary intermediate step
before a full jump to jQuery 3.x.
Importantly, this commit adds jQuery Migrate 1.2.1 from the official CDN
to detect and log deprecated usage patterns that would otherwise break
silently during future upgrades. Migrate will surface issues like:
- Calls to deprecated methods (.live(), .bind() in certain contexts)
These warnings are essential for identifying technical debt in our
existing JavaScript (e.g., in application.js)
and planning safe refactors.
This is Step 1 of a phased migration strategy:
1. Upgrade to jQuery 1.9.1 + Migrate → current commit
2. Audit console warnings and modernize code
3. Upgrade to jQuery 3.7.1 with jquery-migrate-3.4.1
4. Remove Migrate once all deprecations are resolved
The use of CDN-hosted assets simplifies version management and ensures
we’re not bundling outdated copies.
Note: Source map 404s may appear (jquery.min.map) — these are harmless
and expected for older jQuery versions. We will address them in a later
upgrade when moving to modern, actively supported releases.1 parent 532753a commit 0fd4dd0
File tree
1 file changed
+3
-2
lines changed- layouts/partials
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
0 commit comments