[Feature Request] Remove jQuery dependency
Related to #256 but in a broader sense. Since Ember could make jQuery optional, why not we use all vanilla JavaScript instead of relying on jQuery?
@leizhao4 this would be great! I think it could be an objective for the 2.0
I think right now the main dependency with jQuery are the custom jQuery selectors (:contains, etc.). We need to come up with a migration plan and start deprecating features that relay on jQuery.
@san650 rather than deprecating those features, it woud be great to have an optin way of using them if you install jQuery. Thoughts?
We could start reworking the internals to replace jQuery on places where it makes sense first. Like using native events for triggerable and querySelector and querySelectorAll.
Would it be possible to configure jQuery as a “dev” dependency that’s only used in testing? That fulfills the requirement that we’re not shipping jQuery to production while still be able to use jQuery in tests.
@ming-codes when you enable jQuery then Ember will immediately setup Ember.$.
It's also possible to get conflicts with jQuery plugins if they occasionally remained in your app.
Then when you disable jQuery for prod mode it would be impropely(I believe so) tested app.
If you are interested in reliable jQuery-less solution I would suggest to test #325. Here I've tried to properly isolate jQuery without a side effects.