xwp / site-performance-tracker

Allows you to detect and track site performance metrics
GNU General Public License v2.0
96 stars 15 forks source link

Add an opt-in support for TTI metric polyfill #2

Closed delawski closed 3 years ago

delawski commented 5 years ago

According to the Google Developer Guides the only way to track Time To Interactive (TTI) is to use a polyfill.

We should have a way to add the TTI metric along with adding the polyfill as an opt-in feature. I guess it could be another item in the $entry_types array. We currently filter this array using:

apply_filters( 'site_performance_tracker_event_types', array $entry_types = [ 'paint', 'navigation', 'mark' ] );
mehigh commented 3 years ago

Not relevant anymore.