Jump to content

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


metacreo

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

Also try my other modules: Simple Security Simple Export Simple Votings Vat Checker

Edited by metacreo
update (see edit history)
  • Like 1
  • Thanks 3
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>  

 

  • Like 1
Link to comment
Share on other sites

  • metacreo changed the title to [FREE MODULE] HTML Minifier PS 8.x (lightweight)
  • 3 months later...
  On 1/27/2025 at 7:10 PM, Thierry L said:

Ha, there is no configuration page showing your QRcode image and the links to reward you?

Expand  

That's right. 🙂

I give away most of my modules for free, but I don't mind donations. This cfg page is from my standard module template.

What do you want to configure in the module? Write... and maybe soon I will implement it.

Edited by metacreo (see edit history)
Link to comment
Share on other sites

Well, the page does not work... On your side does it work?
On my side when I click Configuration in your module, I return to the login page.

https://xxxxxxxxx/index.php/improve/modules/manage/action/configure/htmlminifier?_token=wzESpta9IAXTYSS-3RQLwNXjCGIVEKHcTBHVBZmsnqw

 

Link to comment
Share on other sites

  • 1 month later...

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...