Arrays are in every web developer’s toolbox, and there are a dozen ways to iterate over them. Choose wrong, though, and all of that processing time will happen synchronously in one long, blocking task. The thing is, the most natural ways are the wrong ways. A simple for..of loop that processes each array item is synchronous by default, while Array methods like forEach and map can ONLY run synchronously. You almost certainly have a loop like this waiting to be optimized right now.| rviscomi.dev
The web is getting faster. In fact, according to HTTP Archive, more websites than ever before are passing the Core Web Vitals assessment, which looks at three metrics that represent different aspects of page performance: loading speed, interaction responsiveness, and layout stability. Earlier this week, the Chrome team published a retrospective on the Web Vitals […] The post A faster web in 2024 appeared first on rviscomi.dev.| rviscomi.dev
Origin trials are a way for developers to get early access to experimental web platform features. They’re carefully controlled “beta tests” run by browsers to ensure that the feature works and is worth more time on implementation and standardization. Check out Getting started with origin trials to learn more. What’s interesting to me is seeing […] The post Origin trials and tribulations appeared first on rviscomi.dev.| rviscomi.dev
Using regular expressions to parse HTML in BigQuery is a nightmare. Instead, we can use Cheerio in SQL to extract insights about the web.| rviscomi.dev
Until recently, I just assumed you could put anything equivalent to an HTTP header in an http-equiv meta tag, and browsers would treat it like the header itself. Maybe you thought the same thing—why wouldn’t you, with a name like that. But as it turns out, there are actually very few standard values that you […]| rviscomi.dev