@tunetheweb@webperf.social
@tunetheweb@webperf.social avatar

tunetheweb

@tunetheweb@webperf.social

Web Performance Developer Advocate for Google Chrome helping to make the web go faster! All opinions my own.

This profile is from a federated server and may be incomplete. Browse more on the original instance.

tunetheweb, to random
@tunetheweb@webperf.social avatar

What is TTFB? What is it not?

It may surprise you that those questions are a bit more tricky to answer than you might assume.

We've added a section to our docs to explain a bit more:
https://web.dev/articles/ttfb#other-definitions

tunetheweb, to random
@tunetheweb@webperf.social avatar

The Web Vitals Extension v1.5.1 has been released with new INP debug data in the console logging.

With this you can see where your INP time is being spentโ€”is it your event handler's JavaScript? Or was it input delay before that so optimising this interaction's JavaScript isn't going to help? Or presentation delay after that?

And for where it isn't directly related to the interactions's JavaScript we now include Long Animation Frame (LoAF) script data to see what else was running at the time!

tunetheweb,
@tunetheweb@webperf.social avatar

Add it to your INP debugging toolkit if not already using it: https://chromewebstore.google.com/detail/web-vitals/ahfhijdlegdabablpippeagghigmibma

More details on this Core Web Vitals debugging data here:
https://web.dev/articles/debug-cwvs-with-web-vitals-extension

tunetheweb, to random
@tunetheweb@webperf.social avatar

Heard about the Speculation Rules API? You can use it to prerender future navigations for instant future navigations.

Well, did you know that Chrome prerenders pages from the address bar and the bookmarks bar? So your site might already be using this prerendering technology.

Use the "Navigation Type Distribution" tab of the CrUX Dashboard to check your site to see if, and how often, that happens:

https://developer.chrome.com/docs/crux/dashboard

matuzo, to random
@matuzo@front-end.social avatar
  1. Download font from Google Fonts. Original size: 154KB
  2. Subset font. New size: 21KB
  3. Convert to woff2: New size: 10KB

With 3 styles, optimizing fonts saves me ~420KB ๐Ÿซ 

tunetheweb,
@tunetheweb@webperf.social avatar

@matuzo My preferred process:

  1. Use Google Fonts with their CSS
  2. Copy their CSS locally (includes subsetting automatically!)
  3. Download the fonts locally too and update CSS to use them.

Bonus points if you do it from a Mac so lose the font hints.

Google fonts does a LOT to optimise fonts so take their learnings rather than settle for the poor download options from their site.

https://www.tunetheweb.com/blog/should-you-self-host-google-fonts/

tunetheweb, to random
@tunetheweb@webperf.social avatar

Great case study! Shows the impact INP can have beyond just browsing the web:

https://web.dev/case-studies/hotstar-inp

And not the first time Iโ€™ve heard of CWVs being used to improve experiences on embedded apps using Chromium.

#wbeperf

adactio, to random
@adactio@mastodon.social avatar

Journal: Speculation rules and fears

Browser are user agents, not developer agents.

๐Ÿ”—https://adactio.com/journal/21149

tunetheweb, (edited )
@tunetheweb@webperf.social avatar

@adactio FYI, speculation rules DOES honour save-data (though sadly usage of that is low) and also the Settings->Performance->Preloading settings.

There are also various other checks we've use:
https://www.youtube.com/watch?v=bSua9vMdrNM&t=1317s

We think that the user-agent being in control of this API is in fact BETTER than doing similar functionality with <link rel>, fetch, serviceworkers or similar.

tunetheweb, to random
@tunetheweb@webperf.social avatar

Have you heard about the Speculation Rules API but not found time to implement it on your website yet?

Well, we published a codelab for Google I/O to walk you through it on a demo site so you can see how easy it is to implement:
https://codelabs.developers.google.com/speculation-rules

Try it out!

#webperf

tunetheweb, to random
@tunetheweb@webperf.social avatar

Lots of advice on debugging INP in @malchata โ€™s Google I/O video.

Delves deep into useful attribution data available in version 4 of the web-vitals library released this week!

#googleio #webperf

https://io.google/2024/explore/ba446093-0036-410b-ba1e-f9016ec21899/

tunetheweb, (edited ) to random
@tunetheweb@webperf.social avatar

My Google I/O talk "From fast loading to instant loading" about the Speculation Rules API is now live!

https://www.youtube.com/watch?v=bSua9vMdrNM

Hit me up if you have any questions

2 years agoโ€”before I joined Googleโ€”some work I did was highlighted at I/O 2022. Then I was lucky enough to get my dream job at Google and prerecorded a talk for I/O 2023. And now I've got to talk live. I guess the only place to go from here is doing Sundar's keynote next year ๐Ÿ˜œ

#webperf

tunetheweb,
@tunetheweb@webperf.social avatar

@midzer as one person said to me this week: โ€œThe API was cool and all, but document rules with eagerness makes this a game changer.โ€

tunetheweb, to random
@tunetheweb@webperf.social avatar

There's a few nice #webperf improvements in Chrome 125 DevTools in case you missed them:
https://developer.chrome.com/blog/new-in-devtools-125

  • 103 Early Hints information in Network panel ๐Ÿ›œ
  • CSS Selector Stats cost ๐Ÿ’ฐ
  • Hide or change order of Perf Panel tracks โ†•

Let us know what you think!

tunetheweb, to random
@tunetheweb@webperf.social avatar

Weโ€™ve just published a v4 release candidate of web-vitals.js:

https://www.npmjs.com/package/web-vitals/v/4.0.0-rc.0

Weโ€™re not planning any further changes so if no issues or bugs are reported then we plan to release v4.0.0 in the next week or so.

This release contains:

  • INP breakdowns (input delay, processing duration, presentation delay) to point you in the direction of the cause.
  • INP Long Animation Frame (LoAF) entry/entries for further help debugging INP with script and timing info of things affecting INP.
tunetheweb,
@tunetheweb@webperf.social avatar

As a pre-Google I/O warm up we've just released web-vitals v4! ๐ŸŽ‰

See the above thread for all the improvements, and things you need to know to upgrade.

And, later this week, check out @malchata 's talk for Google I/O where he'll be explaining how to use these new features to improve INP:
https://io.google/2024/explore/ba446093-0036-410b-ba1e-f9016ec21899/

#webperf

  • All
  • Subscribed
  • Moderated
  • Favorites
  • โ€ข
  • JUstTest
  • mdbf
  • ngwrru68w68
  • cubers
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • DreamBathrooms
  • megavids
  • tacticalgear
  • osvaldo12
  • normalnudes
  • tester
  • cisconetworking
  • everett
  • GTA5RPClips
  • ethstaker
  • anitta
  • Leos
  • provamag3
  • modclub
  • lostlight
  • All magazines