This is an experimental technology
Because this technology's specification has not stabilized, check the compatibility table for usage in various browsers. Also note that the syntax and behavior of an experimental technology is subject to change in future versions of browsers as the specification changes.
PerformanceFrameTiming interface provides frame timing data about the browser's event loop. A frame represents the amount of work a browser does in one event loop such as processing DOM events, resizing, scrolling, rendering, CSS animations, etc. A frame rate of 60fps (frames per second) for a 60Hz refresh rate is the target for a good responsive user experience. This means the browser should process a frame in about 16.7ms.
An application can register a
PerformanceObserver for "
performannce entry types and the observer can retrieve data about the duration of each frame event. This information can be used to help identify areas that take too long to provide a good user experience.
PerformanceFrameTiming interface has no properties, no methods nor any constructors. However, it qualifies and constrains the following
PerformanceEntry properties for "
performance entry types:
This interface extends the following
PerformanceEntry properties (for "
performance entry types) by qualifying and constraining the properties as follows:
- Set to "
- Set to the document's address.
- Set to the
timestampwhen the frame was started.
- Set to a
timestampindicating the difference between the
startTimes of two successive frames.
This interface has no methods.
See the example in Using the Frame Timing API.
The definition of 'PerformanceFrameTiming' in that specification.
|Editor's Draft||Initial definition.|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
||No support||No support||No support||No support||No support|
|Feature||Android||Firefox Mobile (Gecko)||Firefox OS||IE Phone||Opera Mobile||Safari Mobile|
||No support||No support||No support||No support||No support||No support|
 See Chrome bug 120796.
 See bug 1158032.
- Frame Rate (Firefox Performance Tool)
- Frame Timing (Overview)
- Using the Frame Timing API
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.