Skip to content

pablolopezmestre/html-minify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

html-minify

PHP Class to Minify HTML for WordPress

This class minify HTML Output for WordPress websites. Through regular expressions, this class also capture and minify inline CSS & JS.

Minify inline JS

  • Remove JavaScript Inline comments (Don't remove if it's a URL)
  • Remove JavaScript Block comments
  • Remove all new lines, carriage returns, tabs, vertical whitespaces, esc & form feeds characters
  • Remove all spaces (when there are 2 or more)

Minify inline CSS

  • Remove CSS Block comments
  • Remove all new lines, carriage returns, tabs, vertical whitespaces, esc & form feeds characters
  • Remove all spaces (when there are 2 or more)

Minify rest of HTML

  • Remove all HTML comments
  • Remove all new lines, carriage returns, tabs, vertical whitespaces, esc & form feeds characters
  • Remove all spaces (when there are 2 or more)

That's all!

About

PHP Class to Minify HTML for WordPress

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages