Code Monkey home page Code Monkey logo

Comments (13)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
with and without <html> </html>

Original comment by [email protected] on 24 Aug 2010 at 8:25

from htmlcompressor.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
[deleted comment]

from htmlcompressor.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 26, 2024

Original comment by [email protected] on 26 Mar 2011 at 8:14

  • Changed state: WontFix

from htmlcompressor.

Related Issues (20)

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.