You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goal is to provide a more lightweight bundle size, one less dependency, and to use Velocity's built-in capability instead of jQuery's.
Challenge is to find and separate dependencies from tweene and tweene-velocity which treat jQuery as a global dependency and relies on jQuery plugin system.
Complete removal, swapping basic jQuery functions with vanilla ones and shims from Velocity. Result: jQuery queues, data are still needed.
Swapping jQuery with a custom build of Zepto. Result: jQuery queues are still needed
Current options:
UPDATE: make tweene a module that takes a jquery module at run time, so that we can require it and internalize jQuery
Continue on Zepto direction
Build a minimal jQuery from jQuery itself, and inject it in once no jQuery has been detected.
I've also learned that due to nature of velocity/tweene it is discouraging to actually modify their code to remove jQuery completely (or in Velocity's case, jQuery shims).
This task is now done in the jquery-sectomy branch. You don't have to explicitly have jQuery in your project any more.
You can try it right now by doing:
$ yarn add react-flight@next
Or by using any of the updated samples.
Implementation notes:
With that said, I opted not to really remove jQuery (see analysis above), but to make sure all dependencies are good citizens and can use an internally required jQuery version. We're also using jquery-slim, for what its worth.
Goal is to provide a more lightweight bundle size, one less dependency, and to use Velocity's built-in capability instead of jQuery's.
Challenge is to find and separate dependencies from
tweene
andtweene-velocity
which treat jQuery as a global dependency and relies on jQuery plugin system.This is motivated by #17, #16, #11
The text was updated successfully, but these errors were encountered: