techdivision/defer-css

Last activity 28 Aug 2020 1 885
composer require techdivision/defer-css

Neos Defer CSS package with preload option

dev-master

Version
dev-master
Type
neos-package
Release Date
Aug 28, 2020 06:56
Source
git
Distribution
zip
Requires
  • neos/fusion-afx: *
7091e99a319f03c1c1d979368cf6fb60ff1a1ec9

Readme excerpt

Deferring CSS for Neos CMS

This very simple package provides a way to async-load CSS files. You can split your CSS into single files to speed up your website (i.e. load css that is most probably below the fold) or only required if the feature is present.

It provides a "DeferCss" AFX-atom with preload hack as described here:
https://www.filamentgroup.com/lab/load-css-simpler/

Usage

Add your stylesheet simply by using the atom TechDivision.DeferCss:Atom.DeferCss:

prototype(My.Package:Page) { head.stylesheets.myAwesomeStylesheet < TechDivision.DeferCss:Atom.DeferCss { href.path = 'resource://My.Package/Public/Css/MyAwesomeStyleSheet.css' …
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 15 package(s).