Skip to content

Commit 8d60832

Browse files
Merge pull request michael-misshore#10 from michael-misshore/update-to-1.2.1
Update to 1.2.1
2 parents d085d42 + 1a4d33f commit 8d60832

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

lib/loadcss/rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module LoadCSS
22
module Rails
3-
VERSION = '1.2.1'
3+
VERSION = '1.2.2'
44
LOADCSS_VERSION = '1.2.1'
55
end
66
end

vendor/assets/javascripts/cssrelpreload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
var run = w.setInterval( rp.poly, 300 );
3232
if( w.addEventListener ){
3333
w.addEventListener( "load", function(){
34+
rp.poly();
3435
w.clearInterval( run );
3536
} );
3637
}

vendor/assets/javascripts/loadCSS.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
ready( function(){
4141
ref.parentNode.insertBefore( ss, ( before ? ref : ref.nextSibling ) );
4242
});
43-
// A method (exposed on return object for external use) that mimics onload by polling until document.styleSheets until it includes the new sheet.
43+
// A method (exposed on return object for external use) that mimics onload by polling document.styleSheets until it includes the new sheet.
4444
var onloadcssdefined = function( cb ){
4545
var resolvedHref = ss.href;
4646
var i = sheets.length;

0 commit comments

Comments
 (0)