dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make the User Timing API safe to use in MediaWiki
[lhc/web/wiklou.git]
/
resources
/
src
/
startup.js
diff --git
a/resources/src/startup.js
b/resources/src/startup.js
index
56bb3d3
..
5ee295b
100644
(file)
--- a/
resources/src/startup.js
+++ b/
resources/src/startup.js
@@
-6,6
+6,14
@@
var mediaWikiLoadStart = ( new Date() ).getTime();
var mediaWikiLoadStart = ( new Date() ).getTime();
+if ( !window.performance ) {
+ window.performance = {};
+}
+if ( !performance.mark ) {
+ performance.mark = function () {};
+}
+performance.mark( 'mediaWikiStartUp' );
+
/**
* Returns false for Grade C supported browsers.
*
/**
* Returns false for Grade C supported browsers.
*
@@
-25,8
+33,8
@@
function isCompatible( ua ) {
// Browsers with outdated or limited JavaScript engines get the no-JS experience
return !(
// Browsers with outdated or limited JavaScript engines get the no-JS experience
return !(
- // Internet Explorer <
7
- ( ua.indexOf( 'MSIE' ) !== -1 && parseFloat( ua.split( 'MSIE' )[1] ) <
7
) ||
+ // Internet Explorer <
8
+ ( ua.indexOf( 'MSIE' ) !== -1 && parseFloat( ua.split( 'MSIE' )[1] ) <
8
) ||
// Firefox < 3
( ua.indexOf( 'Firefox/' ) !== -1 && parseFloat( ua.split( 'Firefox/' )[1] ) < 3 ) ||
// Opera < 12
// Firefox < 3
( ua.indexOf( 'Firefox/' ) !== -1 && parseFloat( ua.split( 'Firefox/' )[1] ) < 3 ) ||
// Opera < 12
@@
-52,6
+60,8
@@
function isCompatible( ua ) {
ua.match( /Opera Mini/ ) ||
// Nokia's Ovi Browser
ua.match( /S40OviBrowser/ ) ||
ua.match( /Opera Mini/ ) ||
// Nokia's Ovi Browser
ua.match( /S40OviBrowser/ ) ||
+ // MeeGo's browser
+ ua.match( /MeeGo/ ) ||
// Google Glass browser groks JS but UI is too limited
( ua.match( /Glass/ ) && ua.match( /Android/ ) )
);
// Google Glass browser groks JS but UI is too limited
( ua.match( /Glass/ ) && ua.match( /Android/ ) )
);