@idrinth-api-bench/inline-critical-css
Advanced tools
Comparing version 1.1.1 to 1.1.2
{ | ||
"name": "@idrinth-api-bench/inline-critical-css", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -97,3 +97,3 @@ import { parse, stringify, } from 'css'; | ||
.replace(/<\/style>/iug, `${styles}</style>`) | ||
.replace(/<\/body>/iug, `<script>const n = document.createElement('link');n.setAttribute('rel','stylesheet')n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`), 'utf8'); | ||
.replace(/<\/body>/iug, `<script>const n=document.createElement('link');n.setAttribute('rel','stylesheet');n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`), 'utf8'); | ||
} | ||
@@ -100,0 +100,0 @@ else { |
@@ -108,3 +108,3 @@ import { | ||
.replace(/<\/style>/iug, `${styles}</style>`) | ||
.replace(/<\/body>/iug, `<script>const n = document.createElement('link');n.setAttribute('rel','stylesheet')n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`), | ||
.replace(/<\/body>/iug, `<script>const n=document.createElement('link');n.setAttribute('rel','stylesheet');n.setAttribute('href','${sheet}');document.getElementsByTagName('head')[0].appendChild(n)</script></body>`), | ||
'utf8', | ||
@@ -111,0 +111,0 @@ ); |
8760