Merge "Various simple optimizations for the chunked upload process."
[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 /**
8 * Returns false when run in a black-listed browser
9 *
10 * This function will be deleted after it's used, so do not expand it to be
11 * generally useful beyond startup.
12 *
13 * MediaWiki & jQuery compatibility:
14 * - Internet Explorer 6.0+
15 * - Firefox 10+
16 * - Safari 5.0+
17 * - Opera 11+
18 * - Chrome
19 */
20
21 /*jshint unused: false */
22 function isCompatible() {
23 // IE < 6.0
24 if ( navigator.appVersion.indexOf( 'MSIE' ) !== -1
25 && parseFloat( navigator.appVersion.split( 'MSIE' )[1] ) < 6 )
26 {
27 return false;
28 }
29 return true;
30 }
31
32 /**
33 * The startUp() function will be auto-generated and added below.
34 */