Closed darkf closed 6 years ago
fetch
, or Object.assign
) or .animate
(which is doable, we can use requestAnimationFrame
or CSS3 animations.)We also have a mock type stub for jQuery (called mockjq) which we can use to replace jQuery piecemeal and ensure it's no longer used.
In ui
, it seems like they follow a few common patterns:
<img>
), which can/should be replaced with the new UI library (or native DOM APIs at least).animate
So the grunt work is going to be the first three.
For .animate
we can use CSS transitions (e.g. transition: top 1s ease;
), which is easier and probably faster.
Okay, .animate
was replaced (whoo!) with a CSS transition (slightly hacky, but that's browsers for you; it's still much better than jQuery.)
Some other things were replaced too (like scroll{Left,Top}
, etc.)
Currently:
128
Which is not bad, just a lot of boring work.
XHR invocations are ported.
Woot, done! 9618bba
🎉 🎉 🎉
jQuery is an unnecessary dependency with modern DOM APIs, and we can fully replace it. (We're also on an ancient, unsupported version of jQuery.)
The most annoying thing is
.animate
, but it's not hard to implement and can go inui
or such.