youtube / spfjs

A lightweight JS framework for fast navigation and page updates from YouTube
https://youtube.github.io/spfjs/
MIT License
2.23k stars 147 forks source link

Gate `performance.now` timestamps behind an experimental flag. #393

Closed nicksay closed 8 years ago

nicksay commented 8 years ago

To ensure that using performance.now when reporting timing values works as expected, gate the behavior behind a global __spf_experimental_now variable. Don't use a config as usual because this value needs to be set before SPF is executed.

Progress on #389.

rviscomi commented 8 years ago

LGTM just a nit about the function docs.