PDA

View Full Version : compressing source code output


Dr.CustUmz
06-01-2020, 05:59 AM
I'm trying to create a plugin to remove all white spaces from the source rather than having to run each template through an html beautifier. I have tried init_startup & global_start for my hook locations. Yet nothing is happening, and the source code remains the same. Can anyone help me with this, or point me in the right direction.

Managed to get results using the output variable. now to figure out the regex save for vb

Seven Skins
06-03-2020, 09:04 AM
I think global_complate hook works.
But I had problems ignoring JavaScript from this compress as it causes issue.

Dr.CustUmz
06-03-2020, 09:30 PM
I think global_complate hook works.
But I had problems ignoring JavaScript from this compress as it causes issue.

i got it, be on the lookout for the product soon ;) and yes js safe