Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Marl3x27796y@desirous Oh so thats the problem with jquery I've never used it because I've heard that it sucks.
-
It's like a fat walrus that's slowly dying. Anything you can do in jQuery is possible in plain JS, and the benefits aren't worth the size or effort.
-
Ratsuky1026yWell that's what dynamic asset loading is useful for, i copied the asset stack that the laravel blade uses and if i need on a view to do something jquery related i just do a single function call : summon_the_mammoth(); and that just injects the jquery file on that particular page, otherwise the mammoth is kept out of the load times.
Otherwise core js for as far as i can go with it without wasting time and at best plain js based tools. -
Ratsuky1026y@desirous jquery is not usefull enough to be everywhere, that's the problem with it, other libraries like that which are designed for loading everywhere exist and perform better
-
If people want to learn JavaScript in a way that really helps other than learning react, the solution is to take every popular thing that people use jQuery for and figure out the vanilla equivalent.
I'm going through this now and it's hard, uses way more lines, but I can feel comfortable that I don't need to depend on anything anymore. -
bahua129046yI'm with the OP. I'd rather write fast, efficient code that generates clean, readable HTML and CSS than unviewable JavaScript that passes the load to the user.
-
devios157706yjQuery may not be the best choice nowadays but bear in mind it is now 12 years old. At the time it was developed it was quite revolutionary and helped a ton with the unfriendly verbosity of JS syntax, and has probably influenced the development of further standards like HTML 5 and CSS 3.
Like any framework it got bloated and it sounds like it is suffering from trying to do too much, but I don’t think it deserves to be shit on.
I'm not really keen in relying too much on JavaScript to render a properly functioning web page. HTML and CSS is now than good enough for it nowadays.
But if due to technical limitations, i have to use JavaScript, I make sure to not use jquery.
I don't like jquery.
rant
no jquery