Replace imho ugly viewsourcefor subtitle with viewsourcetitle and viewsourceheader...
[mediawiki.git] / resources / startup.js
blob93dd75eded5f3dbd0ef6444648a5fa0f035edc33
1 /**
2  * This script provides a function which is run to evaluate whether or not to continue loading the jquery and mediawiki
3  * modules. This code should work on even the most ancient of browsers, so be very careful when editing.
4  */
5 /**
6  * Returns false when run in a black-listed browser
7  * 
8  * This function will be deleted after it's used, so do not expand it to be generally useful beyond startup
9  * 
10  * jQuery has minimum requirements of:
11  * * Firefox 2.0+
12  * * Internet Explorer 6+
13  * * Safari 3+
14  * * Opera 9+
15  * * Chrome 1+
16  */
17 window.isCompatible = function() {
18         // IE < 6
19         if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1 && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 ) {
20                 return false;
21         }
22         // TODO: Firefox < 2
23         // TODO: Safari < 3
24         // TODO: Opera < 9
25         // TODO: Chrome < 1
26         return true;
28 /**
29  * The startUp() function will be generated and added here (at the bottom)
30  */