Earlier quoted context omitted.
Won’t work Browser caches are partitioned by origin so if a.com and b.com both use jquery from c.com then two copies of jquery will be cached one with a key of a.com/c.com and another with b.com/c.com
Have browsers always done this? I thought and heard that using a JS library from CDN is beneficial when users already have that same cached JS library from visiting other sites. But you're saying that's not a thing? So what's the benefit of using a CDN for jquery then?
The impact of removing jQuery on our web performance
261–270 of 283 posts
Re: The impact of removing jQuery on our web performance
#262Earlier quoted context omitted.
React's core functionality is to manage the relationship between state and the dom. jQuery lets you imperatively manipulate the dom. They're different use cases; calling one useful and the other not isn't a very accurate representation.
No, React’s strength is to componentize your webapp, allowing several teams to work on objects that can be reused by each other.
Many, many approaches solve organizing your code; React is in the middle of a large pack here.
Re: The impact of removing jQuery on our web performance
#263The team at gov.uk is doing an excellent job regarding web performance, credit where credit is due. In many ways role model behavior. Still, the results are such a stretch as to not have that much meaning. They have to descent all the way to 2G to see any meaningful difference, and I'm assuming they are cold visits (typical in lab-based testing). For those exceptional users, this creates a difference from very poor (…
Governments have an obligation to serve all of their citizens, even those on 2G or similarly slow connections. They can't just say "eh, well, we don't want them as customers anyhow".
Re: The impact of removing jQuery on our web performance
#264Earlier quoted context omitted.
From that page, it appears that older versions of Android Chrome don't support fetch at all. I've seen stats that indicate that 5% of the U.S. population (to say nothing of other parts of the world) are still on Android Oreo (version 8), which wouldn't surprise me since older phones are basically locked in time.
Unlike on iOS, I don't think the browser version is tied to the operating system anymore? Besides the AOSP browser that no one uses
Re: The impact of removing jQuery on our web performance
#265Earlier quoted context omitted.
Ah yea you're right - I misspoke. Vanilla JS feels verbose, and jQuery feels more terse in regards to general syntax. --- document.querySelector('#sel').addEventListener('click', (e) => {}) Feels way more verbose than the following: $('#sel').on('click', (e) => {}) My bad - apparently the coffee hadn't sunk in yet ha.
OT note: sel.onclick=e=>{} works just fine. https://jsfiddle.net/39h5ynga/
Re: The impact of removing jQuery on our web performance
#266Earlier quoted context omitted.
> Performance matters, a lot. Developers really don't care. They will claim otherwise with great conviction, but its all posturing and bullshit. If developers did care they would measure everything and challenge popular assumptions. Instead most developers want to randomly guess at what works and instead talk about tools. That's why most pages will never come close to being vaguely fast. 9 seconds is still really slo…
The folks who pay developers get what they pay for. Management sets priorities, not developers.
Re: The impact of removing jQuery on our web performance
#267Earlier quoted context omitted.
It's nice, but also gets boring and restrive quiet quickly in Governmental organisations I've worked for.
> Boring I feel like that's a great quality. As for restrictive, that's a valid concern.
Re: The impact of removing jQuery on our web performance
#268Has 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?
Government: https://www.rijksoverheid.nl/
Tax service: https://www.belastingdienst.nl
Corona dashboard: https://coronadashboard.rijksoverheid.nl/
Student loans: https://duo.nl/particulier/
Re: The impact of removing jQuery on our web performance
#269Earlier quoted context omitted.
> Vanilla JS is terse comparative to jQuery short-hand syntax, especially for simple event bindings. You mean "verbose" here, probably?
Ah yea you're right - I misspoke. Vanilla JS feels verbose, and jQuery feels more terse in regards to general syntax. --- document.querySelector('#sel').addEventListener('click', (e) => {}) Feels way more verbose than the following: $('#sel').on('click', (e) => {}) My bad - apparently the coffee hadn't sunk in yet ha.
---
1. document.querySelectorAll(".sel").forEach((e) => e.addEventListener("click", (e) => {}))
$('.sel').on('click', (e) => {})
2. document.querySelector(".sel")?.addEventListener("click", (e) => {})
$('.sel').on('click', (e) => {})
3. const e = document.createElement("div") e.className = "cls" e.setAttribute("title", "Title") e.textContent = ""
const e = $('').addClass("cls").attr("title", "Title").text("")
Re: The impact of removing jQuery on our web performance
#270Earlier quoted context omitted.
Has anyone been able to reproduce this "Google Research" that is so often quoted? They have numbers related to conversion too. I know I'm sounding doubtful but bringing response time down a second or so isn't a magic potion for more money pouring in the door. Not that anyone should ignore performance. It's irresponsible to ignore perf. I just know from experience, when buying something on Black Friday at Amazon, if t…
The Google Research that is often quoted might have been well intended, but is grossly overstated and misused. The thing with bounce rate is that you don't know WHY the user bounced nor did you know their intent. Typically analytics aren't even loaded yet. Sure enough I believe there to be a correlation forming as you dramatically increase page response time, but you still cannot attribute a high bounce rate to perfo…