This project creates filmstrip views from traces using the experimental new Soft Navigation API in Chrome.
Here is an example of what it displays: It highlights:
- The start of the soft navigation in green (hover for more info)
- The paints which were LCP candidates in yellow (hover for more info)
- The timestamps of paints along the bottom (in milliseconds from when the recording started)
To use it, you need to record a trace of one or more soft navigations:
- Enable experimental web platform features:
- Type chrome://flags/#enable-experimental-web-platform-features into the urlbar
- Ensure "Experimental Web Platform features" is enabled
- Restart Chrome for the change to take effect
- Load the page you want to trace and open devtools.
- Test to ensure soft navigations are detected; in the console you should see "A soft navigation has been detected: " if the page's soft navigations are properly detected.
- Open the performance panel and press record. See "Record runtime performance" in the devtools "Analyze runtime performance" guide for more information.
- Do one or more soft navigations on the page.
- Press stop on the performance panel and wait for it to process the recording.
- Download the recording using the "Save profile" button with the down arrow icon.
- Open
soft-navigation-trace-viewer.html
in a browser and drop the JSON file into it. You can use the version hosted on glitch if you don't want to run it locally. - A filmstrip should appear showing the navigations and largest contentful paint candidates. You can use the "Save Page As" feature to save this filmstrip and share it.
If you don't have a trace recorded and you just want to see what it does, you can use the Example Trace.