PerformanceScriptTiming: forcedStyleAndLayoutDuration Eigenschaft
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
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
Ein DOMHighResTimeStamp
.
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
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
forcedStyleAndLayoutDuration |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
- Experimental. Expect behavior to change in the future.