Remove jQuery
dboehmer opened this issue · comments
We’re now using Bootstrap and with modern Javascript jQuery is told to be not necessary anymore. We’ve probably have a total of 155 lines of jQuery code:
$ ack '\$\(' root/static/js/ -l | xargs wc -l
11 root/static/js/article/edit.js
47 root/static/js/recipe/import/preview.js
44 root/static/js/user/register.js
53 root/static/js/script.js
155 total
-
root/static/js/article/edit.js
-
root/static/js/script.js
-
root/static/js/user/register.js
-
root/static/js/recipe/import/preview.js
- remove jQuery files and includes
- migrate Bootstrap to v5.1.3
@dboehmer We are using Boostrap 4 which requires jQuery. So we should upgrade to Bootstrap 5. This also gives us new possibilities for a modern ui. What do you think?
@dboehmer We are using Boostrap 4 which requires jQuery. So we should upgrade to Bootstrap 5. This also gives us new possibilities for a modern ui. What do you think?
Upgrading Bootstrap sounds good 👍 Especially if that removes a dependency on jQuery! Can you apply that and test it? I think Git history for the bootstrap branch should show which pages very touched for Bootstrap.