shel/critical-css

Last activity 03 Apr 2025 10 2 2188
composer require shel/critical-css

Allows inlining and optimising styles for components in Neos CMS

2.0.0

Version
2.0.0
Type
neos-plugin
Release Date
Dec 29, 2020 10:53
Source
git
Distribution
zip
Requires
  • neos/neos: ~7.0 || dev-master
GPL-3.0-or-later
  • #css
  • #components
  • #styles
  • #neos
  • #fusion
  • #neos cms
34ae0637038d7399419b6049ca8ad30e1a518db1

Readme excerpt

Adding and combining inline styles for critical CSS in Neos CMS

This package provides several helpers to allow adding inline styles to Fusion components in Neos CMS and combining them locally or into the head of a html document. The styles are automatically scoped by default and can be defined dynamically like any other Fusion object.

CSS classes are dynamically generated based on the hash of the defined styles.

This allows you to keep styles together with a component in one file and also be able to override them. A good use case for this is to define inline styles for your critical CSS that should be loaded instantly when the site is shown and defer loading …
Read more

The content of the readme is provided by an external source, which we have no control over. Check out the actual readme at its source.
The same vendor provides 27 package(s).