cujojs/curl — Issue #59: css! Not good support in IE9 and Opera when cross domain
Author: yaoazhen
Created: 2012-02-15 03:33:16+00:00
State: open

In function isLinkReady, if we visit 'sheet.rules', it will throw a error in IE9.
This will make isLinkReady return true, then it will break the loop of function ssWatcher below.
Actually, link.readyState is support in IE9, It could support load css, and do the callback.

function ssWatcher(params, cb) {
// watches a stylesheet for loading signs.
if (isLinkReady(params.link)) {
cleanup(params);
cb();
}
else if (!failed) {
setTimeout(function () { ssWatcher(params, cb); }, params.wait);
}
}