web-vitals icon indicating copy to clipboard operation
web-vitals copied to clipboard

Performance statistics in Hybrid development Webview are not supported

Open haohongyang1 opened this issue 3 years ago • 6 comments

Self-testing found poor mobile compatibility for the PerformanceObserver, with 80 per cent of models failing to get performance data screenshot-20220221-182953 screenshot-20220221-182856

haohongyang1 avatar Feb 21 '22 10:02 haohongyang1

This package is not expected to work on iPhone X, see the browser support section of the README for more details.

Regarding these warnings, can you clarify what code you're running that's triggering them?

philipwalton avatar Feb 21 '22 18:02 philipwalton

The warning information comes from the test of Performanceobserver API in different mobile phone models. Does the web-vitals library support H5 performance statistics in hybrid development?

haohongyang1 avatar Feb 23 '22 07:02 haohongyang1

The warning information comes from the test of Performanceobserver API in different mobile phone models.

So, to be clear, you're not seeing those warning while running the code in the library, you're just seeing those warnings when trying to use the PerformanceObserver API, correct?

philipwalton avatar Feb 24 '22 01:02 philipwalton

Yes

haohongyang1 avatar Feb 25 '22 07:02 haohongyang1

The warning information comes from the test of Performanceobserver API in different mobile phone models.

So, to be clear, you're not seeing those warning while running the code in the library, you're just seeing those warnings when trying to use the PerformanceObserver API, correct?

I'm trying to find out why web-vitals can't get the performance data of hybrid applications, so I'm testing PerformanceObserver.

haohongyang1 avatar Feb 25 '22 07:02 haohongyang1

The warning information comes from the test of Performanceobserver API in different mobile phone models.

So, to be clear, you're not seeing those warning while running the code in the library, you're just seeing those warnings when trying to use the PerformanceObserver API, correct?

I would like to ask whether there is any plan to be compatible with Hybrid App. I have an alternative to PerformanceObserver, which can be used to replace it. Do you need me to provide a solution.

haohongyang1 avatar Feb 25 '22 09:02 haohongyang1

There are no plans to allow this library to work without Performance Observers as browsers without Performance Observer support will not support the majority of the metrics this library provides with potentially only TTFB able to be supported.

tunetheweb avatar Oct 18 '23 19:10 tunetheweb