Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

inline-critical

Package Overview
Dependencies
Maintainers
1
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

inline-critical - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

.idea/jsLibraryMappings.xml

5

index.js

@@ -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' +

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc