Jump to content

[FREE MODULE] HTML Minifier PS 8.x (lightweight)


Recommended Posts

Module to minify PS HTML output. Lightweight and simple module.

<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>

Lightweight module removes extra spaces and new lines from PS html output, thereby minimizing the html code. Leave one space between the tags; in frequent cases of incorrect code, this will allow the elements to be displayed normally.

<img width="16" EXTRA_SPACES_TO_BE_REMOVED height="11" class="someone sometwo EXTRA_SPACES_TO_BE_REMOVED " />

Module removes extra spaces between attributes in tags and in attribute value end.

script, pre, textarea tags excluded from minimization.

Developed for PS 8.x, not tested with 1.7

Tested with default and warehouse theme.

Write me if not works with your theme.

Download htmlminifier.zip

Edited by metacreo
update (see edit history)
  • Like 1
  • Thanks 1
Link to comment
Share on other sites

Module updated.

Leave one space between the tags. Because in frequent cases of incorrect code, this will allow the elements to be displayed normally.

Example: (ICONtext) vs (ICON text).
 

<i class="icon"></i><span> CORRECT ICON TEXT SPACING USING SPACES IN TAG TEXT </span>
<i class="icon"></i> 
    <span>INCORRECT ICON TEXT SPACING USING NEW LINES OR SPACES BETWEEN TAGS</span>  

 

Link to comment
Share on other sites

  • metacreo changed the title to [FREE MODULE] HTML Minifier PS 8.x (lightweight)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...