browsertime icon indicating copy to clipboard operation
browsertime copied to clipboard

Implement support for soft navigations in Chrome(ium)

Open soulgalore opened this issue 2 years ago • 7 comments

It's probably worth waiting until FCP and FP is supported: https://developer.chrome.com/blog/soft-navigations-experiment/

soulgalore avatar Oct 17 '23 05:10 soulgalore

There are some new information here: https://github.com/anniesullie/soft-navigation-trace-viewer

Use Chrome M139 Beta or Chrome M140 Dev/Canary or later.
Start Chrome with the command line flags --enable-features=SoftNavigationHeuristics:mode/advanced_paint_attribution,NavigationId

Maybe it's time to test this again.

soulgalore avatar Jun 30 '25 07:06 soulgalore

There's an update documentation: https://developer.chrome.com/docs/web-platform/soft-navigations-experiment# and how to enable it: https://developer.chrome.com/docs/web-platform/soft-navigations-experiment#how_do_i_enable_soft_navigations_in_chrome

soulgalore avatar Aug 01 '25 03:08 soulgalore

Hi @soulgalore, could you please give some information about the current status of this feature?

kormanowsky avatar Oct 30 '25 11:10 kormanowsky

I haven't tried the updated version of it on Chrome. Older versions it was not so useful, hope it will work better now.

soulgalore avatar Oct 30 '25 12:10 soulgalore

Ok, got it. So is any additional action needed on sitespeed.io's side for this to work? Should we be able to see soft navigation metrics in sitespeed.io reports now when using the latest version of Chromium with the flag enable-features=... enabled?

kormanowsky avatar Oct 30 '25 12:10 kormanowsky

It will not work out of the box. We need to collect "soft navigations" like https://developer.chrome.com/docs/web-platform/soft-navigations-experiment# and then it looks like we need to update how we collect some metrics (also there in the documentation). And then when we turned on "everything" added so we collect metrics, verified that it works + made sure the trace log in Chrome also supports the soft navigation (I don't think it will out of the box), then it could be released. But it's still in trial in Chrome so I would like to wait and see if something more gets changed before I implement a fix.

soulgalore avatar Oct 30 '25 13:10 soulgalore

Ok, thank you. Looking forward to seeing this implemented!

kormanowsky avatar Oct 30 '25 13:10 kormanowsky