Description
In the time the site's been around, cross-browser js functionality and compatibility has improved to the point that we can drop jQuery as a dependency.
We only have ~600 lines of JavaScript and none of it's very complex. We don't serve JS to logged-out users, but for logged-in users it adds up to 140 KB (45KB compressed) of data (standard Rails asset caching, so caches very well). Removing jQuery is not a huge win, so this is pretty far down on my to-do list. Still, it's come up in chat a couple times in the last few months and I thought I'd post it for anyone who might like the exercise of replacing jQuery with no-framework js.
We have two libraries in use. Autosize resizes textareas rather than scroll them and doesn't depend on jQuery - so there's no changes here. Select2 is used for filtering and tab-completing the tag dropdown when creating and editing story changes. It depends on jQuery and will need to be rewritten or replaced. (Ideally with identical behavior, because we haven't touched it in six years and submitters have muscle memory for it.)