Zizzamia / perfume.js

Web performance library for measuring all performance vitals metrics
https://zizzamia.github.io/perfume/
MIT License
3.13k stars 112 forks source link

ios 14 compatity issue, and element timing is not working #175

Open latel opened 3 years ago

latel commented 3 years ago

only fcp and lcpFinal is reported on ios14.7, but much more on android 10.

in addition, element timing is not working on both side.

image

const perfume = new Perfume({
    resourceTiming: true,
    elementTiming: true,
    analyticsTracker: options => {
        const { metricName, data, eventProperties, navigatorInformation, vitalsScore } = options;
        if (metricName !== 'resourceTiming') {
            console.log('perfume', metricName, data);
        }
    }
});
Zizzamia commented 2 years ago

Ciao @latel, yeah you right Safari is so behind in supporting those paint metrics.

About elementTiming, can you show me how you instrumented that one in the HTML? I just tested that one in https://zizzamia.github.io/perfume/, and works as expected.

Screen Shot 2022-02-21 at 4 06 31 PM