Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat Small Program API Performance PerformanceObserver object


May 19, 2021 WeChat Mini Program Development Document


Table of contents


PerformanceObserver

The base library 2.11.0 starts to support, and the lower version needs to be compatible.

PerformanceObserver object, used to listen for performance-related events

Property

Array supportedEntryTypes

Get all the types of performance metrics that are currently supported


Method:

PerformanceObserver.disconnect()

The base library 2.11.0 starts to support, and the lower version needs to be compatible.

Stop listening




PerformanceObserver.observe(Object options)

The base library 2.11.0 starts to support, and the lower version needs to be compatible.

Start listening

Parameters

Object options

Set type to listen to a single type of metric, and set entryTypes to listen to multiple types of metrics.