ng-bootstrap) but not always and so your options are limited if that's the case.
const D = x => document.getElementById(x) const E = x => document.createElement(x)
@pdurbin jQuery is full of shorthands that vanilla lacks. For example
$('p.tooltip').toggle() would be about five times longer to type in vanilla and also less readable.
$.ajax is much nicer to work with and more portable than
XMLHttpRequest. There is
fetch nowadays (which was clearly inspired on
$.ajax), but it has fewer options and you have to include a polyfill if you want to use it seriously in production. jQuery can act as a polyfill for many things.
Then, there are the animations which are basically extras and which play very nicely with Bootstrap. You could implement them yourself in vanilla, but it would amount to reinventing half of jQuery.
Admittedly, the size is significant. On the bright side, 70% of the top million sites use jQuery, so if you embed it from a CDN, your visitor most likely already has it in their cache.