Located in file /site/modules/ProCache/ProCacheMinifyHTML.php
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon.
Common
Name | Return | Summary | |
---|---|---|---|
Pro | string array | Attributes that may be removed when blank (default=see _construct method) | |
Pro | string array | Tags that we will collapse whitespace around (default=see _construct method) | |
Pro | bool | Collapse boolean attributes, where allowed by HTML5? (default=true) | |
Pro Pro Pro | (nothing) | Convert URLs from absolute to relative where shorter | |
Pro | bool | Convert XHTML style "/>" closing tags to HTML ">"? (default=true) | |
Pro | callable | Function to use for CSS minification (default=null) | |
Pro Pro Pro | null bool | Get the value for an option | |
Pro Pro Pro | array | Get the current set options in key => value array | |
Pro | string array | Tags that should be ignored during minification (default=see _construct method) | |
Pro | callable | Function to use for JS minification (default=null) | |
Pro Pro Pro | (nothing) | ||
Pro Pro Pro | int | Minify a CSS string, for inline CSS minification | |
Pro Pro Pro | int | Minify inline javascript within an HTML document | |
Pro | bool | Remove blank attributes, where allowed? (configurable, default=true) | |
Pro | bool | Remove HTML comments? (default=true) | |
Pro | bool | Remove unnecessary/redundant attributes from HTML tags? (default=true) | |
Pro | bool | Remove unnecessary/redundant HTML tags? (default=true) | |
Pro Pro Pro | $this | Set the block level elements (whitespace removed around these elements) | |
Pro Pro Pro | $this | Set the CSS minify callback function | |
Pro Pro Pro | $this | Set the tags that should be ignored | |
Pro Pro Pro | $this | Set the javascript minify callback function | |
Pro Pro Pro | $this | Set a minify option | |
Pro Pro Pro | $this | Set multiple options at once in key => value array | |
Pro Pro Pro | $this | Attribute names that will be removed when blank | |
Pro | bool | Remove quotes from attributes, where allowed by HTML5? (default=true) |
API reference based on ProcessWire core version 3.0.236