23

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.

Comments
  • 4
    @desirous Oh so thats the problem with jquery I've never used it because I've heard that it sucks.
  • 10
    @Marl3x it only sucks if people use it wrong, jquery got it’s own pro and con
  • 3
    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.
  • 2
    Well 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.
  • 1
    @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
  • 2
    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.
  • 2
    I'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.
  • 3
    jQuery 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.
  • 2
Add Comment