diff --git a/lib/loadcss/rails/version.rb b/lib/loadcss/rails/version.rb index a0a6a66..980a8d4 100644 --- a/lib/loadcss/rails/version.rb +++ b/lib/loadcss/rails/version.rb @@ -1,6 +1,6 @@ module LoadCSS module Rails - VERSION = '1.2.2' - LOADCSS_VERSION = '1.2.1' + VERSION = '1.3.1' + LOADCSS_VERSION = '1.3.1' end end diff --git a/vendor/assets/javascripts/cssrelpreload.js b/vendor/assets/javascripts/cssrelpreload.js index 0b948cd..6c2ca62 100644 --- a/vendor/assets/javascripts/cssrelpreload.js +++ b/vendor/assets/javascripts/cssrelpreload.js @@ -1,4 +1,4 @@ -/*! CSS rel=preload polyfill. Depends on loadCSS function. [c]2016 @scottjehl, Filament Group, Inc. Licensed MIT */ +/*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */ (function( w ){ // rel=preload support test if( !w.loadCSS ){ @@ -19,7 +19,7 @@ for( var i = 0; i < links.length; i++ ){ var link = links[ i ]; if( link.rel === "preload" && link.getAttribute( "as" ) === "style" ){ - w.loadCSS( link.href, link ); + w.loadCSS( link.href, link, link.getAttribute( "media" ) ); link.rel = null; } } diff --git a/vendor/assets/javascripts/loadCSS.js b/vendor/assets/javascripts/loadCSS.js index 0f6c347..1c3b388 100644 --- a/vendor/assets/javascripts/loadCSS.js +++ b/vendor/assets/javascripts/loadCSS.js @@ -1,4 +1,4 @@ -/*! loadCSS: load a CSS file asynchronously. [c]2016 @scottjehl, Filament Group, Inc. Licensed MIT */ +/*! loadCSS. [c]2017 Filament Group, Inc. MIT License */ (function(w){ "use strict"; /* exported loadCSS */ diff --git a/vendor/assets/javascripts/onloadCSS.js b/vendor/assets/javascripts/onloadCSS.js index 15a2905..e5cb245 100644 --- a/vendor/assets/javascripts/onloadCSS.js +++ b/vendor/assets/javascripts/onloadCSS.js @@ -1,4 +1,4 @@ -/*! onloadCSS: adds onload support for asynchronous stylesheets loaded with loadCSS. [c]2016 @zachleat, Filament Group, Inc. Licensed MIT */ +/*! onloadCSS. (onload callback for loadCSS) [c]2017 Filament Group, Inc. MIT License */ /* global navigator */ /* exported onloadCSS */ function onloadCSS( ss, callback ) {