Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 01 Jun 2020, 07:59
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Question compressing source code output

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
__________________
This needs to be updated
But I don't know what to put
Check Out Dirt RIF CustUmz

Last edited by Dr.CustUmz; 01 Jun 2020 at 08:09.
Reply With Quote
  #2  
Old 03 Jun 2020, 11:04
Seven Skins's Avatar
Seven Skins Seven Skins is offline
 
Join Date: Sep 2008
I think global_complate hook works.
But I had problems ignoring JavaScript from this compress as it causes issue.
Reply With Quote
  #3  
Old 03 Jun 2020, 23:30
Dr.CustUmz's Avatar
Dr.CustUmz Dr.CustUmz is offline
 
Join Date: Aug 2013
Real name: Ryan
Originally Posted by Seven Skins View Post
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
__________________
This needs to be updated
But I don't know what to put
Check Out Dirt RIF CustUmz
Reply With Quote
Reply


Tags
compress, minify, source


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:04.

Layout Options | Width: Wide Color: