DEV Community

[Comment from a deleted post]
Collapse
 
biomathcode profile image
Pratik sharma

I saw a interview of the creator of JQuery. He also mentioned the most possible reason JQuery succeeded was that at that time JQuery website was very good and JQuery had a whole documentation with examples.
Now, for sure with the development in css and JS, JQuery is not that much needed anymore. Size is not the issue, it's the usability and accessibility.

Collapse
 
po0q profile image
pO0q 🦄 • 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
 
biomathcode 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.

Collapse
 
biomathcode 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
 
oenonono profile image
Junk

What do you mean by "size is not the issue"? Size is not THE issue. But is AN issue. What do you mean by usability and accessibility? Do you mean the usability and accessibility of jQuery? Or of the UIs built with jQuery? Nothing about jQuery necessarily hurts usability or accessibility. It's all in how you use it.

Collapse
 
biomathcode profile image
Pratik sharma

yeah, size is important, but the size of JQuery is not killing it. When JQuery came its usability and accessibility was huge. JQuery was the king of DOM manipulation, animation and enabled developers to create plugins.
Now, with the updates in Js and css. I can create great single page sites without using JQuery.
It's just that size is not killing JQuery.

 
po0q profile image
pO0q 🦄

I think there might be a misunderstanding. My point is not that size is the number one reason to drop jQuery. I'm saying that I don't need jQuery like I needed at that time, so why would I load it on every single page of my websites and apps?

I just don't need it and I've seen poor usages :

don't use it only to make "quicker" DOM selections or essential operations.

When I said 88 kb is huge, it's because it's for nothing, and the impact is everything but insignificant. I prefer investing those kilobytes elsewhere, or best-case scenario, not investing them at all.

I find it's too expensive for the "performance budget".