loadcss-rails 1.2.2 → 1.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a684d78cae8d86a858de8bd942e7a5361e5b791
4
- data.tar.gz: f38947e516344b4e840c90b16099549fdc046391
3
+ metadata.gz: 125a6764da9c1917a1d3d09647cf331413ec455f
4
+ data.tar.gz: c66f35824d340de35eb572fc425630395cd754f2
5
5
  SHA512:
6
- metadata.gz: 415843b1f68dd00e416b9e78cad52299f92db02e51b58fc80de8d47713acd708c6d9b6a01dee2dd0a1844589ae50dd40ab36d5ccd67fd85ab849c83a06684fbf
7
- data.tar.gz: a0161d08c914079f1fc16034b8453b57311bed102f9cb95ec4caae2e3fee4292b96ed3e0e49e417aeb40d080368adb22c8b3f767dae3f335498a96f043e27c0a
6
+ metadata.gz: 3d73a2e2b22d24057c1ee61cff68ccc6db7582825e9c1c8d504a096a25dd8644352cc44d0540d7f35a0dfcd580b0daf91f58fef3e06465698cee73f822cd8585
7
+ data.tar.gz: 4ae372535a69f77b57f86ab638ee75738fd2655610aa003c6816c5ebb669b7aeda2a05635d01d442faa4237b5df78239cb76db63e426cdf589e46388bed9f433
@@ -1,6 +1,6 @@
1
1
  module LoadCSS
2
2
  module Rails
3
- VERSION = '1.2.2'
4
- LOADCSS_VERSION = '1.2.1'
3
+ VERSION = '1.3.1'
4
+ LOADCSS_VERSION = '1.3.1'
5
5
  end
6
6
  end
@@ -1,4 +1,4 @@
1
- /*! CSS rel=preload polyfill. Depends on loadCSS function. [c]2016 @scottjehl, Filament Group, Inc. Licensed MIT */
1
+ /*! loadCSS rel=preload polyfill. [c]2017 Filament Group, Inc. MIT License */
2
2
  (function( w ){
3
3
  // rel=preload support test
4
4
  if( !w.loadCSS ){
@@ -19,7 +19,7 @@
19
19
  for( var i = 0; i < links.length; i++ ){
20
20
  var link = links[ i ];
21
21
  if( link.rel === "preload" && link.getAttribute( "as" ) === "style" ){
22
- w.loadCSS( link.href, link );
22
+ w.loadCSS( link.href, link, link.getAttribute( "media" ) );
23
23
  link.rel = null;
24
24
  }
25
25
  }
@@ -1,4 +1,4 @@
1
- /*! loadCSS: load a CSS file asynchronously. [c]2016 @scottjehl, Filament Group, Inc. Licensed MIT */
1
+ /*! loadCSS. [c]2017 Filament Group, Inc. MIT License */
2
2
  (function(w){
3
3
  "use strict";
4
4
  /* exported loadCSS */
@@ -1,4 +1,4 @@
1
- /*! onloadCSS: adds onload support for asynchronous stylesheets loaded with loadCSS. [c]2016 @zachleat, Filament Group, Inc. Licensed MIT */
1
+ /*! onloadCSS. (onload callback for loadCSS) [c]2017 Filament Group, Inc. MIT License */
2
2
  /* global navigator */
3
3
  /* exported onloadCSS */
4
4
  function onloadCSS( ss, callback ) {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: loadcss-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Misshore
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-18 00:00:00.000000000 Z
11
+ date: 2017-03-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem provides LoadCSS and OnloadCSS for your Rails application.
14
14
  email: