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