troubleshooting Question

Should I still continue using JQuery for Bootstrap 5 when it's no longer a requirement?

Avatar of mike99c
mike99c asked on
JavaScriptjQueryBootstrap
4 Comments1 Solution17 ViewsLast Modified:
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.

ASKER CERTIFIED SOLUTION
David H.H.Lee
Digital Marketing (Hospitality)
Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros