You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.
Use-case is to be able to use critters inside SSR, by processing only CSS and caching processed CSS - allowing the content to evolve independently from the processed CSS. Something like
let html = .... rendered html in ssr ...
const cacheKey = .... some logic ....
const criticalCSS = getInlinedCriticalCSSFromCache(cacheKey) ?? critters.processCss(html);
html = html.replace('</head>', criticalCSS + '</head>')
The text was updated successfully, but these errors were encountered:
Warxcell
changed the title
Expose method processCss which returns inlined css
Feature Request: Expose method processCss which returns inlined css
Dec 4, 2023
Warxcell
changed the title
Feature Request: Expose method processCss which returns inlined css
Feature Request: Expose method processCss which returns inlined css only
Dec 4, 2023
Closing this issue because ownership of Critters has moved to the Nuxt team, who will be maintaining the project going forward. This repo is archived and won't receive any future updates.
Use-case is to be able to use critters inside SSR, by processing only CSS and caching processed CSS - allowing the content to evolve independently from the processed CSS. Something like
This will help also with #78
The text was updated successfully, but these errors were encountered: