Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The hadRecentInput
read-only property of the LayoutShift
interface returns true
if lastInputTime
is less than 500 milliseconds in the past.
Layout shifts are only a problem if the user is not expecting them, so layout shifts that are the result of user interactions (such as a user expanding a UI element) are often not considered in layout shift metrics. The hadRecentInput
property allows you to exclude these shifts.