Skip to content

Latest commit

 

History

13 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

FirstPaintSetter.js

This library enables you getting the first paint time via JavaScript API. Actually we already have a JavaScript API(window.performance.timing object) for performance auditing, but it doesn't have an interface to get first paint. This library tries to get that time and set it to the property 'firstPaint' of window.performance.timing object.

See this picture. In Web Standards, timing object doesn't have firstPaint property. This library does it.

Timingオブジェクト

How to use ?

Download this library and load it on your web site like this.

<script src="js/FirstPaintSetter.js"></script>

Only IE9+ and Chrome can work. Safari, Firefox and Opera might not be implemented until the developer's adaption is changed.

About

Add 'firstPaint' property to window.performance.timing Object.

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages