Const
Clears all performance marks and measures
Creates a performance observer
Function to call when performance entries are observed
Types of entries to observe
Performance observer
Gets the cumulative layout shift
Promise resolving to CLS score
Gets the DOM content loaded time
Promise resolving to DOM content loaded time in milliseconds
Gets the first contentful paint time
Promise resolving to FCP time in milliseconds
Gets the first input delay
Promise resolving to FID time in milliseconds
Gets the largest contentful paint time
Promise resolving to LCP time in milliseconds
Gets the page load time
Promise resolving to page load time in milliseconds
Gets the time to first byte (TTFB)
Promise resolving to TTFB in milliseconds
Creates a performance mark
Name of the mark
Measures the execution time of a function
Function to measure
Number of iterations to run
Object containing execution time statistics
Measures the time between two marks
Name of the start mark
Name of the end mark
Object containing measurement details
Throttles a function
Function to throttle
Time limit in milliseconds
Throttled function
Rest
Clears all performance marks and measures