Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Experimental project
This is a sandbox project, which contains experimental code for developer use only.
Inline (a.k.a critical) CSS is advisable for initial page rendering to eliminate the flash of unstyled content (FOUC) and is something recommended by various page speed tools. https://developers.google.com/speed/docs/insights/OptimizeCSSDelivery
With that in mind this module allows for a CSS library to be defined as "inline" in your libraries.yml file.
Repos also available here: https://github.com/chriskinch/css_inline
Usage:
css/styles.css: {inline:true}
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Module categories: Developer Tools, Performance
- Created by chriskinch on , updated