Skip to content

Commit

Permalink
Moved stylesheet injection from start to the end of preload handl…
Browse files Browse the repository at this point in the history
…er. #36
  • Loading branch information
pisi committed Nov 17, 2011
1 parent 1040780 commit 22af239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jquery.reel.js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,6 @@ jQuery.reel || (function($, window, document, undefined){
}
});
}
set(_style_, $('<style type="text/css">'+rules.join('\n')+'</style>').insertBefore($('head link, head style').first()));
opt.indicator && $overlay.append(indicator('x'));
opt.rows > 1 && opt.indicator && $overlay.append(indicator('y'));
t.trigger('preload');
Expand Down Expand Up @@ -367,6 +366,7 @@ jQuery.reel || (function($, window, document, undefined){
setTimeout((function($img, uri){ return function(){ $img.attr({ src: uri }) } })($img, uri), 0);
}
set(_images_, uris);
set(_style_, $('<style type="text/css">'+rules.join('\n')+'</style>').insertBefore($('head link, head style').first()));
},
tick: function(e){
/*
Expand Down

0 comments on commit 22af239

Please sign in to comment.