goatherd/gh-minify

Plugin for html minification.

Installs: 350

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 4

Type:wordpress-plugin

v1.0 2014-03-23 20:44 UTC

This package is not auto-updated.

Last update: 2024-12-21 17:34:26 UTC


README

WordPress HTML minification plugin.

Features

Minifies request content for some contents served through WordPress.

  • minify HTML
  • minify inline Script
  • minify inline CSS
  • allow to veto through gh-minify-veto filter
  • allow to post-process minification through gh-minify-content filter
  • allow to alter tag-ignore list through gh-minify-skip-tags filter
  • standalone usage

recommended usage

Prepend this to your WordPress index.php

Goatherd\WpPlugin\Minify::initPlugin(); // enable minify

Note that you either need to register composer autoloading (recommended; for example: require_once __DIR__ . '/vendor/autoload.php) or preload the Goatherd\WpPlugin\Minify class file.

technical notes

PSR-4 compliant code approximating SOLID priciples.