GOV.UK drops jQuery from their front end.

jQuery is a roughly 30 KiB dependency that nearly 84% of mobile pages used in 2021—and for good reason. jQuery was an instrumental tool in a time when we really needed a way to script interactivity in a way that smoothed over the differing implementati…


This content originally appeared on web.dev and was authored by Jeremy Wagner

jQuery is a roughly 30 KiB dependency that nearly 84% of mobile pages used in 2021—and for good reason. jQuery was an instrumental tool in a time when we really needed a way to script interactivity in a way that smoothed over the differing implementations of stuff like event handling, selecting elements, animating elements, and so on.

The web is better because of jQuery—not just because it has such incredible utility, but because its ubiquity led to making what it provided part of the web platform itself. Nowadays, we can do just about anything jQuery can do in vanilla JavaScript:

It really begs the question: Do we really need jQuery today? That's a question that GOV.UK has answered with a resounding "no". In March of 2022, Matt Hobbs announced that GOV.UK removed their jQuery dependency. This is a big deal when it comes to the user experience, because GOV.UK provides services and information online for The United Kingdom at scale. Not everyone is tapping away on their 2022 MacBook Pro on a rip-roarin' broadband connection. GOV.UK has to be accessible to everyone, and that means keepin' it lean.

Here's a few of the greatest hits from Matt Hobbs on what GOV.UK noticed in removing jQuery:

For the full story, check out Matt's informative Twitter thread. It's great stuff for web performance geeks, and drives home the point that dependencies matter when it comes to performance. Don't shortchange your users if the web platform can easily do the job a framework can.

This level of commitment to the user experience from a institution that works at the scale GOV.UK does is commendable. I can only hope others follow in their footsteps.


This content originally appeared on web.dev and was authored by Jeremy Wagner


Print Share Comment Cite Upload Translate Updates
APA

Jeremy Wagner | Sciencx (2022-05-19T00:00:00+00:00) GOV.UK drops jQuery from their front end.. Retrieved from https://www.scien.cx/2022/05/19/gov-uk-drops-jquery-from-their-front-end/

MLA
" » GOV.UK drops jQuery from their front end.." Jeremy Wagner | Sciencx - Thursday May 19, 2022, https://www.scien.cx/2022/05/19/gov-uk-drops-jquery-from-their-front-end/
HARVARD
Jeremy Wagner | Sciencx Thursday May 19, 2022 » GOV.UK drops jQuery from their front end.., viewed ,<https://www.scien.cx/2022/05/19/gov-uk-drops-jquery-from-their-front-end/>
VANCOUVER
Jeremy Wagner | Sciencx - » GOV.UK drops jQuery from their front end.. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/05/19/gov-uk-drops-jquery-from-their-front-end/
CHICAGO
" » GOV.UK drops jQuery from their front end.." Jeremy Wagner | Sciencx - Accessed . https://www.scien.cx/2022/05/19/gov-uk-drops-jquery-from-their-front-end/
IEEE
" » GOV.UK drops jQuery from their front end.." Jeremy Wagner | Sciencx [Online]. Available: https://www.scien.cx/2022/05/19/gov-uk-drops-jquery-from-their-front-end/. [Accessed: ]
rf:citation
» GOV.UK drops jQuery from their front end. | Jeremy Wagner | Sciencx | https://www.scien.cx/2022/05/19/gov-uk-drops-jquery-from-their-front-end/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.