PerformanceScriptTiming: forcedStyleAndLayoutDuration Eigenschaft

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

We'd love to hear more about your role and the company you work for
Please help us by answering a few questions.

Experimentell: Dies ist eine experimentelle Technologie
Überprüfen Sie die Browser-Kompatibilitätstabelle sorgfältig vor der Verwendung auf produktiven Webseiten.

Die forcedStyleAndLayoutDuration schreibgeschützte Eigenschaft des PerformanceScriptTiming-Interfaces liefert einen DOMHighResTimeStamp, der die gesamte Zeit in Millisekunden angibt, die das Script mit erzwungenem Layout/Style verbracht hat. Siehe Avoid layout thrashing, um zu verstehen, was dies verursacht.

Wert

Beispiele

Siehe Long animation frame timing für Beispiele im Zusammenhang mit der Long Animation Frames API.

Spezifikationen

Specification
Long Animation Frames API
# dom-performancescripttiming-forcedstyleandlayoutduration

Browser-Kompatibilität

Siehe auch