critical-path-serverdeprecated

Build critical path css asynchronously on demand

Usage no npm install needed!

<script type="module">
  import criticalPathServer from 'https://cdn.skypack.dev/critical-path-server';
</script>

README

DEPRECATED

This project has been renamed and moved to: critical-css-server.

Eliminate render-blocking CSS in above-the-fold content

If you've run Google Pagespeed Insights on your web app, you might have seen this message:

Eliminate render-blocking JavaScript and CSS in above-the-fold content

Your page has blocking CSS resources. This causes a delay in rendering your page. None of the above-the-fold content on your page could be rendered without waiting for the following resources to load. Try to defer or asynchronously load blocking resources, or inline the critical portions of those resources directly in the HTML.

This server generates the critical path CSS for you. It is designed to sit alongside your production app, and prepare the critical CSS asynchronously.

Builds can be started after each deploy, and a few seconds later, you'll be able to defer or asynchronously load blocking resources, and inline the critical portions for your page.