Why I'm removing jQuery from my project – and why it makes sense

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!
Post Reply
User avatar
Otto
Posts: 7020
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Why I'm removing jQuery from my project – and why it makes sense

Post by Otto »

Hello,
I'm currently working on a complex DBF viewer using Bootstrap 5 and decided to remove jQuery completely.

Here's why:

Modern browsers now support everything jQuery was originally needed for: fetch, classList, querySelector, addEventListener, etc.

Bootstrap 5 no longer depends on jQuery

Fewer dependencies = better maintainability, faster load times, and more control

jQuery has become technical debt in many projects – it's no longer a good fit for modern toolchains

I’m now replacing all uses of .on, .val, .tooltip, .ready, etc. with native alternatives. The effort? Moderate. The benefit? Significant.

Best,
Otto
User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: Why I'm removing jQuery from my project – and why it makes sense

Post by Enrico Maria Giordano »

And I add: jQuery is only a wrapper to JavaScript (essentially, sintactic sugar), so it has never been useful for me.
Post Reply