Why is SignalR dependent on jQuery
javascript, jquery, signalr
Solution
The SignalR JS client currently uses jQuery for the following functions:
- Custom events (on objects, not DOM elements)
- Ajax (works on older IE, wrapped in promises, etc.)
- Promises (deferred)
- Misc. utilities
When we remove the jQuery dependency, we'll need replacements for all of these. There are some modern standards supported in ES6 and the latest browsers that will give us some of these things, but others we'll need to create new wrappers for. We may still choose to detect and "light up" on jQuery if it's loaded before us, e.g. to support older IE versions.
Problem
So I know upcomping releases of SignalR are being made not to rely on jQuery. https://github.com/SignalR/SignalR/issues/372 - the closed issue to move it away from jQuery. But why was it dependant on it in the first place? (Obviously from a technical standpoint) Seeing as there seems to be nothing special about jQuery (apart from it exists, in the sense that it could make your life easier). Was this mostly due to the practicalities of jQuery?