Make the User Timing API safe to use in MediaWiki
authorOri Livneh <ori@wikimedia.org>
Fri, 17 Jul 2015 21:46:03 +0000 (16:46 -0500)
committerOri Livneh <ori@wikimedia.org>
Fri, 17 Jul 2015 21:56:22 +0000 (16:56 -0500)
commit7076ee791fe3e991e2a0f8ab17f6bf3fab92df57
tree5a504747bd1ad95762486f005035a0b74728b025
parent6ed8416a7010ac62215df461deadcda68d396590
Make the User Timing API safe to use in MediaWiki

Allow JavaScript code to be annotated via the User Timing API without having to
repeatedly ensure that the API exists by declaring a no-op stub for browsers
that don't implement it. Do it in the startup module so we can use
performance.mark() early. Add an initial performance.mark() call as a use-case.

Task: T105389
Change-Id: Id686073da5baf3fcae36f296e6e50d648a543249
.jshintrc
resources/src/startup.js