A
A
Archer *range attack +10*2015-08-18 18:52:04
MODX
Archer *range attack +10*, 2015-08-18 18:52:04

How to force ModX to issue a minified html code to the browser?

If you insert already minified code into chunks, snippets and templates, it will be impossible to edit it normally, but you want to reduce the loading time of the site. Is there a plugin for ModX that would minimize the code either when saving, and then open it back when editing, or give the minimized code to the browser, and in general - is it possible to do this?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sanes, 2015-08-18
@kon-rafikov

There is MinifyX to build and compress CSS/JS.
Compressing HTML is unlikely to give you any profit with such a complex project. Much more efficient will be the optimization of calls, images, styles and scripts.

A
alikmster, 2020-12-28
@alikmster

The answer, of course, is very late, but for modx there is a MinifyHTML component that does exactly the minimization of html.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question