-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUEST] Making jQuery Optional #16058
Comments
If you want to help get my branch passing in normal mode, follow the same instructions for contributions, but target https://github.com/wycats/ember.js/tree/no-jquery |
I'm not sure if this matters at all, but if you want access to https://github.com/topaxi/ember-jquery and it's npm package or even move it somewhere please contact me :) |
@topaxi what does that package do right now? I assume you're thinking we can use it to let people opt into the original functionality? |
I'm actively working on getting my own branch passing again. |
I took a look through and |
I've checked all the packages w/ and w/o
|
I would like to pick |
Once we get a package passing, it should be "locked" down in the See f71bbd0 for where this was initially setup... |
Looks like Edit: was looking at an older version of the |
@acorncom woot woot |
I got the tests passing on my branch, but for some reason tests are failing in IE11. I'm off for the evening, but I'd love a PR to get things passing on IE11. If nobody tackles it, I'll try to wrap it up later this weekend 😄 |
Anything I can help with? 😄 |
@rwwagner90 do you think you can take a look at the IE11 bug on my branch? |
@wycats yeah, I can take a look. No promises that I will figure it out though. Will give it a shot tomorrow morning 👍 |
@wycats ember-jquery just includes jquery into the vendor bundle (it also allows for including the slim version Yes, it was my thought that it might be used for opt-in to the old behavior. |
@wycats is it just the browserstack failures you wanted me to look at? It seems that the first 4 jobs are failing on Travis, but not sure if they are related. I tried running the browserstack tests locally, but couldn't seem to get it to work. Would you recommend setting up a VM for IE? I don't generally test in IE. |
@rwwagner90 (and others looking to test other browsers), Microsoft provides virtual machines for testing Edge & IE https://developer.microsoft.com/en-us/microsoft-edge/tools/vms/ |
@rwjblue @snewcomer what do we need to do to land #16075 ? |
@rwjblue still looking for help with ember-glimmer? I've never looked at the code there, but I can try to help 😄 |
@rwwagner90 @wycats yes, |
@ro0gr decouple in what way? |
@wycats I think to decouple per file is good enough. If somebody wants to do all in once he still can.
|
@ro0gr thanks! I updated it! |
@emberjs/learning-team-managers there will be some additional instructions for Ember Data: |
Is there anything left on the error message front? |
I would think this can be closed? |
This year, we're going all-in on stripping down Ember to its bare essentials.
The first target in that effort is making jQuery optional, so applications that aren't using jQuery don't need to include the bulk. Successfully making jQuery optional cuts out around 30kb of minified/gzipped code, so it's a very juicy target (it's around 15-20% of the total size of an Ember app's initial vendor.js!)
@rwjblue has done a lot of work so far on this front, and as of 28da357, the
ember-application
package tests clean without jQuery. Now it's time to finish the job.Testing Ember
If this is your first time working on Ember, you should follow these steps:
yarn
to populate yournode_modules
yarn start
http://localhost:4200/tests/index.html?hidepassed
in your browser.Testing Ember Without jQuery
To test Ember without jQuery, you add in the
jquery=none
query parameter when running tests.If you do that, you'll get a bunch of failures, so we're working on removing the dependency on jQuery one package at a time.
To test a single package without jQuery, run the tests by hitting this URL:
Making Progress
In order to make progress on removing the jQuery dependency, you need to satisfy two criteria:
jquery=none
modejquery=none
Making progress in this way means that incremental work can always be merged into master, because there are no regressions when using Ember the way it's always been used.
Current Status and Work Items
I (@wycats) got the
ember-glimmer
package down to 20 failing tests on theno-jquery
branch of https://github.com/wycats/ember.js.However, I violated Rule 2 under "making progress" and broke a bunch of tests when running jQuery.
So some things you could work on:
ember-glimmer
jquery=none
inember-glimmer
this.$()
in Ember ComponentsNot blockers for shipping the flag, but stuff we should work on before considering this feature "done":
Hang Out in Community Slack
We'll be coordinating this work on the community slack. You can join the #dev-jquery-removal channel.
The text was updated successfully, but these errors were encountered: