Skip to content

Commit 3b1d868

Browse files
committed
Merge pull request #186 from marioestrada/master
Fix IE9 issues when loading 32+ stylesheets
2 parents 1f19bf1 + ac9fd93 commit 3b1d868

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

css.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,14 @@ define(function() {
7474
var ieCurCallback;
7575

7676
var createIeLoad = function(url) {
77+
curSheet.addImport(url);
78+
curStyle.onload = function(){ processIeLoad() };
79+
7780
ieCnt++;
78-
if (ieCnt == 32) {
81+
if (ieCnt == 31) {
7982
createStyle();
8083
ieCnt = 0;
8184
}
82-
curSheet.addImport(url);
83-
curStyle.onload = function(){ processIeLoad() };
8485
}
8586
var processIeLoad = function() {
8687
ieCurCallback();

0 commit comments

Comments
 (0)