News for hackers. Stuff that matters.
Re:Gov.uk drops jQuery from their front end by nhinck on Thursday May 19, 2022 @10:50AM (#31435406)
Hmm, I would agree that you can do 95%+ of stuff jQuery used to be used for in vanilla js or html/css in a nicer way but animated collapsible divs still require a stupid amount of js to achieve.
Re:Gov.uk drops jQuery from their front end by iCarrot on Thursday May 19, 2022 @11:31AM (#31436011)
Animated collapsible div can be done with 0 line of JS.

https://code-boxx.com/expand-collapse-div-css-only/

Re:Gov.uk drops jQuery from their front end by nhinck on Friday May 20, 2022 @07:02AM (#31445722)
Uhh, did you check out how that actually functions? It looks like garbage.
Re:Gov.uk drops jQuery from their front end by ThunderSizzle on Friday May 20, 2022 @11:04AM (#31448444)
Agreed, this example looks like total shit.