mw.loader: Fixes for <script> and <link> loading.
authorTimo Tijhof <ttijhof@wikimedia.org>
Wed, 24 Oct 2012 18:13:26 +0000 (20:13 +0200)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 5 Nov 2012 04:16:08 +0000 (04:16 +0000)
commit67d400e727af98f8c74c1c21a5003372f33291e4
tree02496198cfbb657d792cbc6ee7a101f8b8fb0a58
parentf5ff38bab0af0dbfe70733fead6ce7a6c23ae9c0
mw.loader: Fixes for <script> and <link> loading.

addScript:
* Integrate fixes from jQuery where this function is based on.
  * Set properties instead of attributes (faster, shorter and
    less potential bugs)
  * Set async property (why not!)
  * Remove redundant try/catch. Whatever this was for,
    apparently not needed anymore. Follows-up 41d636d3.

mw.loader.load( , text/css ):
* (bug 41331) Security warnings in IE7 for protocol-relative
  urls for stylesheets in mw.loader.load.
  Fixed by using properties instead of attributes. Not sure why.
  Probably related to how IE "normalises" urls when set as
  attribute, which would not happen as much when setting a
  property.

importStylesheetURI:
* Remove redundant .type property, fix space.

Change-Id: I04f1775213633e6822b4f982fd43a35b19d19531
resources/mediawiki/mediawiki.js
skins/common/wikibits.js