News for hackers. Stuff that matters.
Re:Gov.uk drops jQuery from their front end by pastor_bob on Thursday May 19, 2022 @11:23AM (#31435885)
most people probably have jquery cached in their browser if you're pulling it from the google cdn
Re:Gov.uk drops jQuery from their front end by jameshart on Thursday May 19, 2022 @11:34AM (#31436060)
Thanks to cache partitioning, this is no longer true.

See, it turns out that by carefully leveraging cached retrieval of third party resources, scripts on two different domains can figure out if they are running in the same web browser, effectively pulling off browser fingerprinting.

To stop this, modern browsers don’t share third party resource caches cross domain.

So using a well known CDN no longer confers any benefit - even if a user has pulled down jquery for another site’s benefit, when they come to your site and you request the same resource, the browser will go out and re-retrieve it, to prevent you or the third party domain from being able to infer anything about the user based on the speed of the response or whether or not the request got made.

Re:Gov.uk drops jQuery from their front end by sensanaty on Thursday May 19, 2022 @01:36PM (#31437684)
LocalCDN is great for this! Avoids both the privacy concerns, plus makes things a bit speedier as everything is readily available locally already
Re:Gov.uk drops jQuery from their front end by pastor_bob on Thursday May 19, 2022 @11:40AM (#31436140)
ahh wasn't aware, and good to know
Re:Gov.uk drops jQuery from their front end by jameshart on Thursday May 19, 2022 @12:04PM (#31436423)
Indeed. We cannot have nice things.
Re:Gov.uk drops jQuery from their front end by dbbk on Thursday May 19, 2022 @11:40AM (#31436138)
As others have mentioned this isn't the case, also the browser still has to parse that JavaScript, which for a lower end mobile phone is often significant.
Re:Gov.uk drops jQuery from their front end by my69thaccount on Thursday May 19, 2022 @11:26AM (#31435934)
That hasn't been the case for years because of per-origin caching. CDNs get their performance from edge routing, not caching.