Skip to content

furoshiki/FirstPaintSetter.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published