Hacker News new | ask | show | jobs
by lelandfe 617 days ago
Love how good the CLS is. I wonder if you can deal with flashes of white during navigation with the new View Transitions API
1 comments

Oh, it's because the site does `*{visibility:hidden}` during loading. Don't do that, show us the intermediate state >:)

You're artificially making your FCP also be your TTI, which means page navigation, when everything should be cached and fast, feels slow. That's not something e.g. Lighthouse tells you.

I recommend showing the page right away, even if there's going to be jank. Jank/Cumulative layout shifts can be fixed later.