htmlcompressor icon indicating copy to clipboard operation
htmlcompressor copied to clipboard

Text/html script tag compression

Open GoogleCodeExporter opened this issue 9 years ago • 4 comments

What steps will reproduce the problem?
1. Add a script tag with type ="text/html"
2. Use compression on the HTML page. 

What is the expected output? What do you see instead?
I expect the contents to be compressed as text/html. However, the contents are 
not compressed.

What version of the product are you using? On what operating system?
Using JSTL tags, with 1.5.3

Original issue reported on code.google.com by [email protected] on 20 Sep 2012 at 8:28

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

I am also look forward this feature, but this issue seems is duplicate with 
issue #72

Original comment by [email protected] on 16 Nov 2012 at 7:59

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

[deleted comment]

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

update: It seems the author have worked out the solution for this, but you 
should use "text/x-jquery-tmpl" instead of "text/html" for inline template, if 
you still want use "text/html" (personally, I prefer "text/x-template".), you 
may need modify the source (see http://bit.ly/THyyQJ)

Original comment by [email protected] on 16 Nov 2012 at 8:41

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter

Just FYI: this will not work with iCanHaz or Mustache templates, unfortunately 
- or at least not without changing those particular scripts. I wirked past this 
problem by starting to use Hogan.js and precompile the Hogan Mustache templates 
on the server to vanilla Javascript, which can be compressed fine ;-)

Original comment by [email protected] on 16 Nov 2012 at 9:31

GoogleCodeExporter avatar Nov 27 '15 21:11 GoogleCodeExporter