The latest Bootstrap 5 version is designed to no longer depend on JQuery but you can still use it. In the Bootstrap website they encourage you to use vanilla JavaScript.
I have always used JQuery in my previous Bootstrap versions and am in two minds about switching to vanilla JavaScript and abandoning JQuery altogether.
I understand that the main advantage is that you save around 85k by not importing the JQuery library but the trade-off is the code is not as easy to read. I am also concerned that I still depend on plug-ins such as Fancybox which depend on JQuery so I would have to import it anyway.
I would like your views on the best approach going forward based on what I have written.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Distinguished Expert awards are presented to the top veteran and rookie experts to earn the most points in the top 50 topics.