New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-inline-critical-css

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-inline-critical-css - npm Package Compare versions

Comparing version 1.0.0-beta.3 to 1.0.0-beta.4

5

dist/index.js

@@ -125,3 +125,2 @@ "use strict";

const linkStylesheet = $link.toString();
const noscriptFallback = `<noscript>${linkStylesheet}</noscript>`;
/* Change the link tag and add the relevant markup to the page.

@@ -131,3 +130,2 @@ * <link rel="stylesheet"...> ->

* <link rel="stylesheet" href="/path/to/mystylesheet.css" media="print" onload="this.media='all'">
* <noscript><link rel="stylesheet" ...></noscript>
*/

@@ -139,4 +137,3 @@ $link

})
.before(criticalStyleTag)
.after(noscriptFallback);
.before(criticalStyleTag);
const newHtml = $.html();

@@ -143,0 +140,0 @@ return newHtml;

2

dist/index.spec.js

@@ -60,3 +60,3 @@ "use strict";

}
</style><link rel="stylesheet" href="index.css" media="print" onload="this.media=&apos;all&apos;"><noscript><link rel="stylesheet" href="index.css"></noscript>
</style><link rel="stylesheet" href="index.css" media="print" onload="this.media=&apos;all&apos;">
</head>

@@ -63,0 +63,0 @@ <body>

{
"name": "metalsmith-inline-critical-css",
"version": "1.0.0-beta.3",
"version": "1.0.0-beta.4",
"description": "Metalsmith plugin to inspect HTML files, inline used selectors from specified CSS, and load the rest asynchronously.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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