Comments (13)
Does your javascript contain strings with html tags? Does it work without
compressing javascript? Would you be able to provide html you are trying to
compress?
Original comment by [email protected]
on 24 Aug 2010 at 3:29
from htmlcompressor.
I'm compressing javascript directly, with and without <script> </ script>
function bozo(cocodeAranha) {
alert(cocodeAranha);
}
Original comment by [email protected]
on 24 Aug 2010 at 4:03
from htmlcompressor.
with and without <html> </html>
Original comment by [email protected]
on 24 Aug 2010 at 8:25
from htmlcompressor.
It wouldn't compress javascript directly. You need to use YUI compressor in
this case.
So does it fail even when it is inside <script> tags? If you can provide a page
that fails to compress that would be helpful. It is hard for me to figure out
what's the problem right now.
Thanks.
Original comment by [email protected]
on 25 Aug 2010 at 2:02
from htmlcompressor.
[deleted comment]
from htmlcompressor.
I need to compress javascript directly due to the navigation ajax, here the
script that it does not compress:
<script>
function bozo(cocodeAranha) {
alert(cocodeAranha);
}
</ script>
It would not be a problem of Rhino library ?
http://yuilibrary.com/forum/viewtopic.php?f=94&t=3345
Thanks
Original comment by [email protected]
on 25 Aug 2010 at 1:10
from htmlcompressor.
The correct script
<script type=\"text/javascript\">
function bozo(cocodeAranha) {
alert(cocodeAranha);
}
</script>
Original comment by [email protected]
on 25 Aug 2010 at 1:30
from htmlcompressor.
I will look over it on the weekend, thanks.
Why you don't want to use YUI compressor? It is what it was made for - to
compress pure javascript.
Original comment by [email protected]
on 27 Aug 2010 at 5:27
from htmlcompressor.
I used the YUICompressor 2.4.2, but returned same error .. I think the error is
in it.
Original comment by [email protected]
on 27 Aug 2010 at 2:53
from htmlcompressor.
Sorry I can't reproduce this error. I tried to compress this code and it worked
fine:
<script type=\"text/javascript\">
function bozo(cocodeAranha) {
alert(cocodeAranha);
}
</script>
Are you getting error on trying to compress this exact piece of code?
If you say that even YUI returns error then probably there is something wrong
either with YUI or with javascript (tags are not closed or something like that).
I don't know what I can do here...
Original comment by [email protected]
on 27 Aug 2010 at 9:23
from htmlcompressor.
Really worked well here, but in a clean design, when I put it into my web
project that uses SiteMesh and VRaptor it does not work, there would be any
problem with another lib Rhino YUICompressor that implements different?
Original comment by [email protected]
on 27 Aug 2010 at 9:40
from htmlcompressor.
Sorry I haven't worked with any of those. Do you use standalone Rhino library
in your project? I've seen a warning somewhere on YUI site that it conflicts
with standalone Rhino as YUI already includes it and overwrites some of Rhino
classes.
Original comment by [email protected]
on 27 Aug 2010 at 10:22
from htmlcompressor.
Original comment by [email protected]
on 26 Mar 2011 at 8:14
- Changed state: WontFix
from htmlcompressor.
Related Issues (20)
- a
- preserve-line-breaks causes StackOverFlow when consumed 2000 empty lines. HOT 1
- Velocity Version
- compressor replaces double spaces in urls and thus brokes the links HOT 1
- http://compilehtml.com/ not working anymore HOT 2
- javaScript wan't be compressed
- How to use the htmlcompressor? HOT 1
- [deleted issue]
- Unable to use latest closure compiler HOT 3
- how can i did not reduce spaces when it is in the input tag HOT 1
- removeSpacesInsideTags incorrectly removes space after some unquoted attributes HOT 1
- Unable to use closure HOT 2
- Extend HTML compressor to compress and combine external files
- Google Closure Compiler compiler.jar not found even though present
- one-line comment HOT 1
- styleTypeAttrPattern should also search for type="text/css"
- Add a --preserve-single-line-break option
- Update for JSP 2.2 HOT 2
- greedy simple attributes remove content for all attributes ending in "disabled" such as ng-disabled
- && in attributes breaks compression HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from htmlcompressor.