Perf and a11y aren't the same thing. It's fine to teach a child how to cook macaroni and cheese. The perf "baseline" as it is practiced today (and evangelized by Google) makes "learning to code" a near-impossible task.
-
-
If you follow it to its conclusion, you get the increasingly shrill (and ineffective) shaming campaigns we've seen come out of Google in the past and which I don't want to see crop up again. If you're worried about TTI, pervasive route-based code splitting would do a lot.
-
Concrete ideas like building: code splitting, tree shaking, DOM phasing, more work off the UI thread into frameworks will go much further than trying to get already-burdened curricula to cover the low level details that people can use to try to do it themselves.
-
To be concrete, I think browsers could be more overt about the fact that frameworks are likely the solution to this problem, and come clean about the fact that a vanilla.js + perf training world is unlikely to result in the fast web we all want.
-
I don't see it as one-sided. It's imo important, and OK to teach developers about a perf budget. I'd prefer not to teach them about the browser's hidden classes. I definitely think frameworks and libraries are part of the solution.
-
I think it's ok to teach devs the concept of TTI but if end devs are trying to hit frame budgets directly we probably already failed. I've met many good devs who don't even know how to use `debugger`
End of conversation
New conversation -
-
-
None of the two extremes scale. We need to find a healthy compromise. And I agree, from a browser perspective we're definitely not there yet. My intent wasn't to put the blame exclusively on developers.
-
I'm definitely not arguing for an extreme. I'm arguing for placing emphasis on higher leverage tools (like frameworks) instead of spreading the word that frameworks are in conflict with good performance.
-
This might come as a shock, but I don't disagree at all, I never thought frameworks and perf are mutually exclusive. Internally we're also exploring some routes on how to empower frameworks more than before. Hope I can share more soon.
-
Yay! It doesn't come as a shock. Just think it's important to phrase exhortations well to avoid a lot of people wasting a lot of time on efforts that don't really work.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.