ProCacheMinifyHTML class
Copyright (C) 2023 by Ryan Cramer
This is a commercially licensed and supported module DO NOT DISTRIBUTE
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon.
Common
Properties
Name | Return | Summary | Default |
---|---|---|---|
Pro | string array | Attributes that may be removed when blank | see _construct method |
Pro | string array | Tags that we will collapse whitespace around | see _construct method |
Pro | bool | Collapse boolean attributes, where allowed by HTML5? | true |
Pro | bool | Convert XHTML style "/>" closing tags to HTML ">"? | true |
Pro | callable | Function to use for CSS minification | null |
Pro | string array | Tags that should be ignored during minification | see _construct method |
Pro | callable | Function to use for JS minification | null |
Pro | bool | Remove blank attributes, where allowed? (configurable, default=true) | |
Pro | bool | Remove HTML comments? | true |
Pro | bool | Remove unnecessary/redundant attributes from HTML tags? | true |
Pro | bool | Remove unnecessary/redundant HTML tags? | true |
Pro | bool | Remove quotes from attributes, where allowed by HTML5? | true |
API reference based on ProcessWire core version 3.0.251