Search code examples
google-chrome-devtoolslighthouse

Time to Interactive Vs First CPU Idle


What's the difference between Time to Interactive Vs First CPU Idle.For me in all the reports Time to Interactive is always > First CPU Idle.

Thanks, Raj


Solution

  • The docs define Time to Interactive as:

    The Time to Interactive (TTI) metric measures how long it takes a page to become interactive. "Interactive" is defined as the point where:

    • The page has displayed useful content, which is measured with First Contentful Paint.
    • Event handlers are registered for most visible page elements.
    • The page responds to user interactions within 50 milliseconds.

    The docs define First CPU Idle as:

    The First CPU Idle metric measures when a page is minimally interactive:

    • Most, but maybe not all, UI elements on the screen are interactive.
    • The page responds, on average, to most user input in a reasonable amount of time.

    The difference being that first CPU time measures when a page is minimally interactive, and time to interactive measures how long it takes a page to become interactive.