inline-critical
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -44,6 +44,9 @@ /** | ||
'var l=d.createElement(\'link\');' + | ||
'var r=d.getElementsByTagName(\'script\')[0];' + | ||
'l.type=\'text/css\';' + | ||
'l.rel=\'stylesheet\';' + | ||
'l.media=\'only x\';' + | ||
'l.href=u[i];' + | ||
' d.getElementsByTagName(\'head\')[0].appendChild(l);' + | ||
'r.parentNode.insertBefore(l,r);' + | ||
'setTimeout( function(){l.media=\'all\';});' + | ||
'}' + | ||
@@ -50,0 +53,0 @@ '}(document,[\'' + hrefs.join('\',\'') + '\']));\n' + |
{ | ||
"name": "inline-critical", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Inline critical-path css and load the existing stylesheets asynchronously", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,3 +28,3 @@ var expect = require('chai').expect, | ||
it('should inline css', function(done) { | ||
it('should inline and minify css', function(done) { | ||
var html = fs.readFileSync('test/fixtures/index.html', 'utf8'); | ||
@@ -31,0 +31,0 @@ var css = fs.readFileSync('test/fixtures/critical.css', 'utf8'); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
59856
25
394