2017 © Pedro Peláez
 

wordpress-plugin themosis-criticalcss

A themosis plugin that generates critical CSS

image

keltiecochrane/themosis-criticalcss

A themosis plugin that generates critical CSS

  • Friday, July 7, 2017
  • by keltiecochrane
  • Repository
  • 1 Watchers
  • 2 Stars
  • 64 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 20 Versions
  • 0 % Grown

The README.md

Themosis Critical CSS

A WordPress plugin for Themosis that implements kalfheim/critical-css to generate critical CSS in WordPress. You'll need to have wp-cli setup to run it, and it'll also need to be present in production to new/changed posts. Also relies on keltiecochrane/themosis-illuminate implementation of config and files, and uses keltiecochrane/themosis-logger for logging., (*1)

It will generate CSS for mobile, tablet and desktop devices, which will be served as appropriate by browser sniffing. It will automatically modify style tags to set them to rel="preload" and uses loadCSS to polyfill browsers that don't support preloading., (*2)

This plugin will set a cookie to determine users that have/haven't been served the CSS previously (to avoid inflated page loads for users that have a cached copy of your CSS.) You may need to add a notice or override this functionality as is appropriate to local laws regarding cookies., (*3)

Install

From your projects base path run: -, (*4)

npm install critical --save, (*5)

Require the package in composer: -, (*6)

composer require keltiecochrane/themosis-criticalcss, (*7)

Copy the config/criticalcss.php file into your config folder., (*8)

Activate the plugin in WordPress., (*9)

Use

You'll need to have wp-cli installed, to generate CSS run: -, (*10)

wp critical-css generate, (*11)

To clear generated CSS run: -, (*12)

wp critical-css clear, (*13)

Support

This plugin is provided as is, though we'll endeavour to help where we can., (*14)

Contributing

Any contributions would be encouraged and much appreciated, you can contribute by: -, (*15)

  • Reporting bugs
  • Suggesting features
  • Sending pull requests

The Versions

11/04 2017

0.1.6

0.1.6.0

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

11/04 2017

dev-release/0.1.6

dev-release/0.1.6

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

0.1.5

0.1.5.0

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

dev-release/0.1.5

dev-release/0.1.5

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

0.1.4

0.1.4.0

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

dev-release/0.1.4

dev-release/0.1.4

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

0.1.3

0.1.3.0

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

dev-release/0.1.3

dev-release/0.1.3

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

0.1.2

0.1.2.0

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

0.1.1

0.1.1.0

A themosis plugin that generates critical CSS

  Sources   Download

The Requires

 

plugin themosis

10/04 2017

0.1.0

0.1.0.0

A themosis plugin that implements the illuminate/cache packing with a WP_Object_Cache driver

  Sources   Download

The Requires

 

plugin themosis