rbieber / jspcompressor Goto Github PK
View Code? Open in Web Editor NEWForked version of htmlcompressor found on Google code (http://code.google.com/p/htmlcompressor/)
Home Page: http://code.google.com/p/htmlcompressor
Forked version of htmlcompressor found on Google code (http://code.google.com/p/htmlcompressor/)
Home Page: http://code.google.com/p/htmlcompressor
hi,
i have enabled debug true ,
to check whether JSP file compression happening or not.
Please find below debug line for one of the file.
[jspcompressor] Original Size: 10070, reduced to 10070 (0%)
[jspcompressor] Compressing:
[jspcompressor] Returning <script type="text/javascript">$("#billingAddressphone").keypress(function(c){var d=c.keyCode||c.which;if(d===13){$("#button2").click();}});$("#addressphone").keypress(function(c){var d=c.keyCode||c.which;if(d===13){$("#button3").click();}});$(document).ready(function(){$("#button2").click(function(){var d=isFieldValueValid("billingAddressphone","N");if(d){var c=$("#myContextPath").val()+"/checkout/getAddressforPhone";$("#billingAddressphoneLabel").hide();$("#checkoutForm").attr("method","post");$("#billingAddresstownCity").attr("disabled",false);$("#checkoutForm").attr("action",c);document.getElementById("retAddrButtonCheck").value="billing";$("#checkoutForm").submit();}else{$("#billingAddressphoneLabel").show();}});});</script>
Looks like compression on happening and showing 0%
My ANT task is
I have compressed my jsps and js files using jsp and yui compressor. My js files are compressed without any errors. But my jsp has gone under lot of change. There are many places where following changes have occured.
[ " is replaced with dot .
Thanks
Abhishek
[email protected]
The command line utility is not updated to reflect new options for use with JSP files.
The custom tag library not updated to reflect new options for use.
We could probably get much better javascript compression using the Closure compiler. Need to investigate this.
JSP is getting too compressed and it needs to insure the page directive is on its own line. Example:
<% page ...%>
<div>hi</div>
turns would turn into this:
<% page ... %><div>hi</div>
This breaks when tomcat attempts to load and execute the page as the page directive must be on its own line.
In instances where Javascript is surrounded by , the new HTML comment removal code I put in was stripping all javascript out between them. We need to match these characters FIRST and substitute them with everything in between those comments. THEN do general HTML comment removal.
The velocity tags are not updated to reflect new options for use.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.