Live data from Hacker News

The impact of removing jQuery on our web performance

insidegovuk.blog.gov.uk

131–140 of 283 posts

Re: The impact of removing jQuery on our web performance

#131
post #17

Earlier quoted context omitted.

This is the design system that the government(1) of The Netherlands uses: https://www.nldesignsystem.nl (1) https://www.government.nl

I'm deeply confused that pretty much all Dutch government websites look alike, yet they look in no way like the "nldesignsystem" site

I'm not involved, but I think that is because the nldesignsystem project is fairly recent.

Re: The impact of removing jQuery on our web performance

#132
post #122

Earlier quoted context omitted.

> We have 5G and stupid fast chips in phones now. The people who need government services the most won't have this

Do we have hard data on this? Just want to make sure we aren’t just making assumptions. I would think most folks of any income would replace their phones even every 5 years, simply because the batteries would’ve died. And I’d think any phone in the past 5 years would be reasonably decent. Even the ultra cheap ones. Plus with networks, cell carriers are at least incentivized in general to get folks off 3g into lte sin…

IMO the key concept is that the government does not serve most folks. It serves all folks, so it is good to be slightly conservative in terms of bandwidth.

For data maybe Android share in Europe could be a start, or people with prepaid plans. In my experience both are much more prevalent in Europe than in the US.

Re: The impact of removing jQuery on our web performance

#133

Earlier quoted context omitted.

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…

fetch() can definitely be aborted, and what "older browsers" don't support fetch? You must be talking maybe about Internet Explorer 11, the only older browser that is still somewhat used (in Japan and public/old infra) that doesn't support it? https://caniuse.com/fetch

I work on a site that gets a small percentage (less than 0.1%) views from iOS 10 devices, which doesn’t support fetch. This still amounts to a few dozen views.

Re: The impact of removing jQuery on our web performance

#134

At the end he said a certain cohort of users, but how many users were actually in that cohort? JQuery is an older technology. I find it hard to believe something made to work on older hardware / internet is affecting performance that much. We have 5G and stupid fast chips in phones now. I’m skeptical. Performance issues are usually database queries or code compiling / “waking up” some server function.

Can I point you to this blog post from edent, on the importance of making government websites work for everyone: https://shkspr.mobi/blog/2021/01/the-unreasonable-effectiven...

Re: The impact of removing jQuery on our web performance

#135
post #104
post #69

Earlier quoted context omitted.

I'm afraid there won't be anything like that in Germany any time soon.

Wait, the Germans, of all people, don’t have a standard government design system? Next you’re going to say the Swiss also don’t have one, and I’ll have to throw out my entire set of national stereotypes!

It's not entirely surprising. Germany is a federal republic, somewhat similar to the US, with some degree of autonomy for its member states. Switzerland is a confederacy.

Re: The impact of removing jQuery on our web performance

#136
post #106
post #21

Earlier quoted context omitted.

I wish more governments would do this to be honest - instead of having hundreds and hundreds of different agencies/localities all hiring different web designers all expressing their artistic preferences of how a website should work. I applaud the UK for this - the US and its various federal agencies/states/cities/towns should consider the same, not only as a cost saving measure, but making the experience predictable…

Slightly off-topic. Ok, off-topic. I find it exceptionally galling that the so-called Inflation Reduction Act sends $80 billion to the IRS, of which $15 million is earmarked “to fund a task force that would study the cost and feasibility of creating a free direct e-file program.” Spoiler alert fellas - it’s feasible, and it should have been done 20 years ago. https://crsreports.congress.gov/product/pdf/IN/IN11977

Id love to know what the potential reasons are for it being infeasible. Intuit doesn't want us to?

Re: The impact of removing jQuery on our web performance

#137
post #78

Earlier quoted context omitted.

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()?

Internet Explorer and older browsers support is important too. You must support browsers released within last 10 years and fetch is too new and experimental for this. I don't want to use something just because it is new and has no clear advantages over older technology.

Re: The impact of removing jQuery on our web performance

#138

Earlier quoted context omitted.

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.

Don't worry, I know it's not that easy, and good for you for sticking to the design system rules! My sarcasm was mostly directed to the chaos introduced in state services by giant consulting firms doing there own thing quick and dirty...

Re: The impact of removing jQuery on our web performance

#139
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…

Austria: https://design.austria.info/en/design-system/

Re: The impact of removing jQuery on our web performance

#140

Earlier quoted context omitted.

The article goes on to explain that they are optimising for extremely low spec devices used by financially and socially disadvantaged users. The majority of their users load pages in less than 1s (likely due to caching and connection). Some users take 25s or more to load a page. It is for these edge cases they were testing.

They're testing against a hypothetical user on a 2G cellular connection. I can't see many situations where that would happen. Being poor doesn't mean you can't afford 3G because every data plan in the UK includes 4G as a mimimum. Often 5G is included too. You have to be extremely rural to drop down to 2G and rural people are often better off. Poorer people tend to be in urban areas that have better digital infrastruc…

I think it is a great mindset to try to be as inclusive as possible. It might actually improves everyone’s experience.
Post reply on HN