metacreo Posted January 16, 2024 Share Posted January 16, 2024 (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 Also try my other modules: Simple Security Simple Export Simple Votings Vat Checker Edited Friday at 06:32 AM by metacreo update (see edit history) 1 3 Link to comment Share on other sites More sharing options...
metacreo Posted January 19, 2024 Author Share Posted January 19, 2024 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...
Thierry L Posted January 27 Share Posted January 27 Hello, when I open the configuration part it returns me to the login page... Thank you for this free module. 😉 Link to comment Share on other sites More sharing options...
metacreo Posted January 27 Author Share Posted January 27 On 1/27/2025 at 3:09 PM, Thierry L said: Hello, when I open the configuration part it returns me to the login page... Thank you for this free module. 😉 Expand Hello, Module not have additional configuration. Link to comment Share on other sites More sharing options...
Thierry L Posted January 27 Share Posted January 27 Ha, there is no configuration page showing your QRcode image and the links to reward you? Link to comment Share on other sites More sharing options...
metacreo Posted January 28 Author Share Posted January 28 (edited) 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 January 28 by metacreo (see edit history) Link to comment Share on other sites More sharing options...
Thierry L Posted January 28 Share Posted January 28 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 More sharing options...
metacreo Posted January 28 Author Share Posted January 28 Strange, works for me. Try to reset module or reinstall. Link to comment Share on other sites More sharing options...
Thierry L Posted January 28 Share Posted January 28 On 1/28/2025 at 6:11 AM, metacreo said: Strange, works for me. Try to reset module or reinstall. Expand Ok i send to you in private Link to comment Share on other sites More sharing options...
moonlights Posted March 26 Share Posted March 26 Hello metacreo, Thank you very much for this free module. Would it be possible to make it compatible with Prestashop 8.2.1? Best regards Link to comment Share on other sites More sharing options...
metacreo Posted Thursday at 06:16 AM Author Share Posted Thursday at 06:16 AM Hello @moonlights, Just checked. Module same works with PS 8.2.1 Try to clean cache if something not works for you. 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