The critical path is the path to render a web page, what's needed before that can happen. CSS Stylesheets block rendering. Until the browser has requested, received, downloaded, and parsed your stylesheets, the page will remain blank. By reducing the amount of CSS the browser has to go through, and by inlining it on the page (removing the HTTP request), we can get the page to render much, much faster. You should minify the critical CSS, then inline it on your page (wrapped in <style> tags). It should be placed in the header, replacing the full CSS link(s). The full CSS, and JS script tags (which also block rendering), should be moved out of the HEAD, to the end of the page, just before the closing body tag. You need to generate critical CSS for each page individually. Make sure to only move down the full CSS to the bottom of the page for pages where you have inlined critical path CSS in the header.

Features

  • Speed up your page render time in no time
  • You need to generate critical CSS for each page individually
  • Make sure to only move down the full CSS to the bottom of the page
  • The process is automatic and the generated CSS is production ready as is
  • Penthouse will return the critical CSS needed
  • Logging is done via the debug module under the penthouse namespace

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow penthouse

penthouse Web Site

Other Useful Business Software
Our Free Plans just got better! | Auth0 Icon
Our Free Plans just got better! | Auth0

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of penthouse!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript HTML XHTML, JavaScript Web Development Software

Registered

2022-06-21