DEV Community

loading...

Discussion on: JQuery Footguns?

Collapse
deciduously profile image
Ben Lovy Author

Aha, I've seen this but never knew what it was called. Thanks for the link, great read!

Collapse
rhymes profile image
rhymes

Don't know if you know but jQuery has promises/deferreds/futures. You can do neat things with them :)

Thread Thread
deciduously profile image
Ben Lovy Author

Should they be used in lieu of es6 promises?

Thread Thread
rhymes profile image
rhymes

They came before, I think they've inspired them. I'm not sure how compatible they are. Methods like $.get() return such deferreds, but I haven't tried to mix the two :D

Thread Thread
deciduously profile image
Ben Lovy Author

A cursory glance suggests they aren't really compatible. I'll have to play with it, I've only used the newfangled jazz.