Live data from Hacker News

Gov.uk drops jQuery from their front end

web.dev

1–10 of 458 posts

Re: Gov.uk drops jQuery from their front end

#3
Eh. Everyone hates on jQuery, but for most informational sites that's really all you need for basic interaction.

Speed really isn't bad, and it's so straightforward that it's hard to mis-use at this point.

I seem to have way more issues with newer frameworks/SPA if I'm not using chrome with no extensions.

Makes me nervous dealing with important stuff like banking or government sites.

Re: Gov.uk drops jQuery from their front end

#6

Eh. Everyone hates on jQuery, but for most informational sites that's really all you need for basic interaction. Speed really isn't bad, and it's so straightforward that it's hard to mis-use at this point. I seem to have way more issues with newer frameworks/SPA if I'm not using chrome with no extensions. Makes me nervous dealing with important stuff like banking or government sites.

For basic interaction, you don't need anything but vanilla JS. Browsers have come a long way since the days where jQuery was almost necessary to deal with all of the minor differences/bugs in various browsers.

Re: Gov.uk drops jQuery from their front end

#7

Eh. Everyone hates on jQuery, but for most informational sites that's really all you need for basic interaction. Speed really isn't bad, and it's so straightforward that it's hard to mis-use at this point. I seem to have way more issues with newer frameworks/SPA if I'm not using chrome with no extensions. Makes me nervous dealing with important stuff like banking or government sites.

I loved jquery back in the day. It made web development bearable in a time when it was a clusterfuck.

I think a lot of people owe a lot of thanks to jquery.

But in 2022 vanilla javascript is all you really need.

Re: Gov.uk drops jQuery from their front end

#8
Good policy, but also not huge gains here IMO. I wouldn't choose jQuery as I can do everything I need without it, but I also don't know of any serious issues it represents if it hangs around here or there.

I have a bunch of old code that uses jQuery, it works, everything new is vanilla but otherwise it's not a big impediment / problem that I find.

Re: Gov.uk drops jQuery from their front end

#9
post #6

Eh. Everyone hates on jQuery, but for most informational sites that's really all you need for basic interaction. Speed really isn't bad, and it's so straightforward that it's hard to mis-use at this point. I seem to have way more issues with newer frameworks/SPA if I'm not using chrome with no extensions. Makes me nervous dealing with important stuff like banking or government sites.

For basic interaction, you don't need anything but vanilla JS. Browsers have come a long way since the days where jQuery was almost necessary to deal with all of the minor differences/bugs in various browsers.

It's a much nicer syntax and has a ton of useful helpers.

Vanilla js for similar things just looks like someone has waved the ugly stick at it.

There are sound arguments against jQuery but the "you can just use vanilla" is the least convincing.

Re: Gov.uk drops jQuery from their front end

#10
post #6

Eh. Everyone hates on jQuery, but for most informational sites that's really all you need for basic interaction. Speed really isn't bad, and it's so straightforward that it's hard to mis-use at this point. I seem to have way more issues with newer frameworks/SPA if I'm not using chrome with no extensions. Makes me nervous dealing with important stuff like banking or government sites.

For basic interaction, you don't need anything but vanilla JS. Browsers have come a long way since the days where jQuery was almost necessary to deal with all of the minor differences/bugs in various browsers.

I'll admit I'm a bit out of practice with the state of vanilla JS, but it seems like you'll be re-inventing the wheel for simple stuff.

Like a collapsible section that's lightly animated.

I worry too about people not considering accessibility.

A lot of my bugs day to day is not being able to tab into things like hover menus or being able to activate buttons because someone forgot to consider correct event callbacks.

Maybe it's different now, but using a jQuery makes it more likely the code will cover cases like that.

Post reply on HN