Coder Social home page Coder Social logo

jspcompressor's People

Contributors

rbieber avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

jspcompressor's Issues

0% compression

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: $("#billingAddressphone").keypress(function(b){var a=b.keyCode||b.which;if(a===13){$("#button2").click();}});$("#addressphone").keypress(function(b){var a=b.keyCode||b.which;if(a===13){$("#button3").click();}});$(document).ready(function(){$("#button2").click(function(){var a=isFieldValueValid("billingAddressphone","N");if(a){var b=$("#myContextPath").val()+"/checkout/getAddressforPhone";$("#billingAddressphoneLabel").hide();$("#checkoutForm").attr("method","post");$("#billingAddresstownCity").attr("disabled",false);$("#checkoutForm").attr("action",b);document.getElementById("retAddrButtonCheck").value="billing";$("#checkoutForm").submit();}else{$("#billingAddressphoneLabel").show();}});});
[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


Page directive fix for jsp

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.

Regarding replacement of [" with .

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]

HTML Comment removal is broken in Javascript blocks

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.