From: Timo Tijhof Date: Fri, 20 Apr 2018 00:47:08 +0000 (+0100) Subject: resourceloader: Remove mwPerformance stub and rename mwLoadStart mark X-Git-Tag: 1.34.0-rc.0~5585^2 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=512fcfdc6082ca6aa60301b6208eb2bc3782ed3b;p=lhc%2Fweb%2Fwiklou.git resourceloader: Remove mwPerformance stub and rename mwLoadStart mark Remove the private 'mwPerformance' stub, in favour of simply calling performance.mark() directly in a conditional, like we do elsewhere for web APIs that don't exist in all supported browsers. This mark (part of the W3C User Timing interface), was sometimes used to measure a delta to mwLoadEnd, whcih is a problem because startup loads asynchronously. The point it executes is intentionally variable. What matters is when the overall JS load process ends, which is composed of multiple requests. Keep the mark, but rename to 'mwStartup' which better describes its purpose and can remain useful. Bug: T160315 Bug: T192623 Change-Id: I6e2049e7252e5c2be3c5bc6617703b62e5edafb4 --- diff --git a/maintenance/jsduck/eg-iframe.html b/maintenance/jsduck/eg-iframe.html index 91e0bc12e3..4c02998d19 100644 --- a/maintenance/jsduck/eg-iframe.html +++ b/maintenance/jsduck/eg-iframe.html @@ -35,8 +35,7 @@