Should I still continue using JQuery for Bootstrap 5 when it's no longer a requirement?
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.
1) You'll either use JQuery where this makes sense... or...
2) Write your own JQuery replacement code, which will almost surely work slower, less correctly, with far larger sized code than using JQuery.
There is no right or wrong.
You'll have to make this choice based on your own criteria for robustness of your code.
In almost every case, JQuery code (1000s of developers) will be far more robust code than any single person can write.