Consistently Interactive
See original GitHub issueBug report
First off I just want to say that this issue may not actually lie with Lighthouse, and I may just be looking for advice as to what to do to get a clearer score. Thank you very much for this fantastic and helpful tool.
Provide the steps to reproduce
- Run LH performance on https://www.theatermania.com/
What is the current behavior?
NO_TTI_NETWORK_IDLE_PERIOD
error presents for the Consistently Interactive score, and I also wonder if it is bringing down to the First Interactive score as well. I think it might have to do with a Google Ad (DFP) pinging at a 100ms interval. Screenshots have been included to show that it seems like the app is interactive (and when I actually try to use it I can).
What is the expected behavior?
I expect to see a more accurate score and time.
Environment Information
- Affected Channels: CLI, Extension, DevTools
- Lighthouse version: this has presented at least for the last several versions of Chrome DevTools, and a few for the CLI. I haven’t been tracking the extension as much since it’s in DevTools.
- Operating System: macOS 10.13, macOS 10.12, Windows 10
Screenshots Chrome DevTools Performance Trace (screenshots show very little change after a while)
Full Trace
Long tail of trace showing repetitive pattern.
Detail of one segment of that pattern
Issue Analytics
- State:
- Created 5 years ago
- Comments:6
Top GitHub Comments
v3 seems to have fixed the reporting issue for consistently interactive (now called “Time to Interactive”), so you should get useful numbers now.
As for improving perf… yikes that’s some terrible ad behavior! Most of the scripting cost on your page is from 3rd parties, so if you’re in a position to scale back reliance on some of these, then great. Otherwise, we’re working on some broader initiatives to surface the cost of third party scripts and apply pressure to cleanup. Hang tight and do what you can to drive down the cost of the app.js bundle 😃
@gja I just want to reiterate that our performance metrics are still not golden, they’re just a lot better. We’ve done more than just delay ad loads, we’ve tried to delay lots of non-critical (ie below-the-fold, secondary content, secondary requests) using a mix of onLoad and requestFrameAnimation handlers. Specifically to your question we’ve delayed ads with the onContentLoad handler. We still have a red number for TTI but it’s about 60% better than what it was.