DEV Community

loading...

Discussion on: jQuery: the king is dead

Collapse
jmau111 profile image
Julien Maury Author • Edited

Interesting point, documentation is vital for any tools. Modern frameworks such as Svelte have such incredible documentation with practical examples and even interactive playgrounds. It makes the difference for sure, I agree with you.

About the size, I don't know if it is not the issue, maybe it is, at least indirectly. If you take any web vitals test, it can improve your perf score significantly, because some key metrics are related to that.

Loading jQuery to make classic sliders, basic animations has a cost. I did not measure that precisely, though.

Collapse
pratiksharm profile image
Pratik sharma

JQuery is of size 30kb minified as per the website and momentjs (66kb) which is also a widely used library in frontend development. ( i know don't use moment js thing)

I don't think size is really that big issue to kill JQuery. JQuery can't proved with more accessibility or code easiness that it use to.

Collapse
pratiksharm profile image
Pratik sharma

JQuery is of size 30kb minified as per the website and momentjs (66kb) which is also a widely used library in frontend development. ( i know don't use moment js thing)

I don't think size is really that big issue to kill JQuery. JQuery can't Provide with more accessibility or code easiness that it use to.

Thread Thread
jmau111 profile image
Julien Maury Author

I see your point and I agree with you, why use jQuery if that's not helpful anymore.

Still size matters. 30kb is like loading React. I'm considering the mobile world, old devices and poor network connections. For that I have metrics. It can add up to 1s on very old devices, especially old android. It adds precious milliseconds on mobile devices.

Don't get me wrong, removing jQuery is not the top priority to improve performances, there are way better leverages before, but it's not useless.

It's all about your analytics, knowing your audience and devices used.

Forem Open with the Forem app