metacreo Posted January 16 Share Posted January 16 (edited) 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 October 10 by metacreo update (see edit history) 1 2 Link to comment Share on other sites More sharing options...
metacreo Posted January 19 Author Share Posted January 19 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> 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now