Live data from Hacker News

The impact of removing jQuery on our web performance

insidegovuk.blog.gov.uk

71–80 of 283 posts

Re: The impact of removing jQuery on our web performance

#71
post #25

Earlier quoted context omitted.

France: https://www.systeme-de-design.gouv.fr/

Will have to inform the french national services about it ("Ameli", "Impôts", "URSSAF"), apparently they are not aware of it!

It's one of the objective in the long run but it does require a lot of work to get everyone on the same page.

I am currently working on implementing the "Système de Design de l'État" for a french governement service but unfortunately it is still pretty chaotic right now since there are many modifications of components with breaking-changes / no backwards compatibility with almost every releases.

Re: The impact of removing jQuery on our web performance

#72
post #39
post #16

Earlier quoted context omitted.

Yes, this is an example of government design systems, which are becoming popular among developed countries: - The UK: https://design-system.service.gov.uk/ - The US: https://designsystem.digital.gov/ - Canada: https://www.canada.ca/en/government/about/design-system.html - Argentina: https://argob.github.io/poncho/ - Italy: https://designers.italia.it/ - Singapore: https://www.designsystem.tech.gov.sg/ - Estonia: http…

Australia: https://designsystemau.org/ it was the official design system until it got defunded, now I believe it's run by open source

The New South Wales state design system is still fairly consistently used: https://www.digital.nsw.gov.au/delivery/digital-service-tool...

It's open source on GitHub: https://digitalnsw.github.io/nsw-design-system/

Re: The impact of removing jQuery on our web performance

#75
post #45

Earlier quoted context omitted.

From the post > For example, for a simulated user visiting the Universal Credit start page on a low specification device and 2G mobile connection, we can clearly see from the graph where the jQuery change was made. Even if the cost of jQuery can be amortised over multiple page views in a session, someone's still got to have a successful first page view before they can view any more For a service like Universal Credit…

Yes, but still no notion if it was really just that "Universal Credit *start page*" [1] load measured or if it was some more realistic scenario, like, you know, navigating to some page that this guidepost links to. Loading just the start guidepost does not make much sense from the user's perspective. Again, I really do not want to attack their conclusions, I'm just curious how much (if at all (!)) would browser cache…

My guess would be that the vast majority of people who visit government websites are doing it very infrequently and are highly likely to arrive with a cold cache.

Re: The impact of removing jQuery on our web performance

#76
post #29
post #16

Earlier quoted context omitted.

Yes, this is an example of government design systems, which are becoming popular among developed countries: - The UK: https://design-system.service.gov.uk/ - The US: https://designsystem.digital.gov/ - Canada: https://www.canada.ca/en/government/about/design-system.html - Argentina: https://argob.github.io/poncho/ - Italy: https://designers.italia.it/ - Singapore: https://www.designsystem.tech.gov.sg/ - Estonia: http…

- Russia: http://gov.design/

Ironic that it's http

Re: The impact of removing jQuery on our web performance

#77
post #53

Earlier quoted context omitted.

Does any browser cache the parsing, tokenizing and built AST of Javascript libraries between website visits? Also, I don't visit UK government websites that often -- so I'd suspect I am "cold cache" whenever I do.

> Does any browser cache the parsing, tokenizing and built AST of Javascript libraries between website visits? From a quick googling, yes, at least some of them. (TIL): https://stackoverflow.com/questions/1096907/do-browsers-pars... >> The third time (i.e. a hot run), Chrome takes both the file and the file’s metadata from the cache, and hands both to V8. V8 deserializes the metadata and can skip compilation. — https…

Scripts cached by a Chrome Service Worker will be compiled to byte code and cached too

https://v8.dev/blog/code-caching-for-devs#use-service-worker...

Re: The impact of removing jQuery on our web performance

#78
post #33

Earlier quoted context omitted.

Yeah but for what? I have been writing vanilla js for years now and aside from the sometimes slightly more convenient syntax I haven't missed a thing where using jQuery would have helped me over not using it. I don't say anything against loading useful javascript libraries, but too many websites load 1 MB of libraries just to get a result that they could have achieved with a few lines of handcrafted vanilla js. This…

jQuery is more convenient to use than vanilla JS. Vanilla JS is too verbose. If only jQuery was modular and didn't require to load 300 or 400 Kb of code. Also it is difficult to find non-jQuery library of a good quality. For example, I was looking for a small library to send and receive JSON via HTTP, and ended up writing my own wrapper around XMLHttpRequest (fetch() is a poor choice, it is not supported well in olde…

I'm with you on fetch() requests not being able to be aborted, but I didn't think there were any other reasons to use XMLHttpRequest over fetch in 2022. I've been fetch() only for a few years as this point - what older browsers are you targeting that don't support fetch()?

Re: The impact of removing jQuery on our web performance

#80
post #16
post #4

Has anyone noticed how all UK government websites like https://www.gov.uk/ , https://www.nhs.uk/ , https://tfl.gov.uk/ , https://coronavirus.data.gov.uk/ have the same look-and-feel and the same UX? Are there more such examples of countries that have uniform UX for their government websites?

Yes, this is an example of government design systems, which are becoming popular among developed countries: - The UK: https://design-system.service.gov.uk/ - The US: https://designsystem.digital.gov/ - Canada: https://www.canada.ca/en/government/about/design-system.html - Argentina: https://argob.github.io/poncho/ - Italy: https://designers.italia.it/ - Singapore: https://www.designsystem.tech.gov.sg/ - Estonia: http…

Netherlands: https://www.rijkshuisstijl.nl/
Post reply on HN