yui-compressor

Javascript YUICompressor error

Using YUICompressor I get the following error from my javascript code: [ERROR] 270:201:missing name after . operator [ERROR] 292:6:missing ; before statement Here's the javascript code at the following lines: Line 270: new _ow.getScript(_ow.wwwurl+'/widget/save?title='+encodeURIComponent(this.obj.title.value)+'&url='+encode...

Yahoo Compressor

Any one know how can I apply Yahoo Compressor (YUI compressor) on my website? ...

How can I combine and compress multiple script and css files for production use?

I want to use YUI Compressor to combine and compress my css and js file sets when I compile my project. YUI Compressor only takes as input single files. I've tried using the following (Windows) commands to append to the output files, but strange characters appear in the output where appendage occurs. How can I use windows command line or...

YUI Compressor: What are micro optimizations?

YUI Compressor, in its (not very extensive) documentation states this as an option: --disable-optimizations Disable all the built-in micro optimizations. Does anyone know what this means? What will this turn on/off? I haven't found any documentation about it. Thanks! ...

Can YUI compressor minify ASP.NET inline script?

How can you compress inline script and style tags? YSlow says In addition to minifying external scripts and styles, inlined script and style blocks can and should also be minified. ...

YUICompressor + Java

Can you run the YUICompressor from within a Java application? I am new to Java programming so the answer may be obvious but it has alluded me. ...

Java Build Process / YUI Compressor Issues

I am very new to Java programming so please bare with me. I am building a build process for our web development team. All it needs to do is read a global.css file, find all the stylesheets that are used for the project, concat them into one large file, then compress this file using the YUI Compressor. So far I am all the way up to the po...

YUICompressor or similar in PHP?

I've been using yuicompressor.jar on my test server for on-the-fly minimisation of changed JavaScript files. Now that I have deployed the website to the public server, I noticed that the server's policies forbid the use of exec() or its equivalents, so no more java execution for me. Is there a decent on-the-fly JS compressor implemented...

Errors using yuicompressor

Hi, I am getting some errors when trying to run yuicompressor. it says: [error] 1:2:illegal character [error] 1:2:syntax error [error] 1:3 illegal character Could this be because I am saving it as the wrong encoding or something? update first few lines of my code function page_init() { $().ready( function() { ...

yuicompressor error, not sure what is wrong?

Hi, Very confused here, trying out the yuicompressor on a simple javascript file. My js file looks like: function splitText(text) { return text.split('-')[1]; } The error is: [INFO] Using charset Cp1252 [Error] 1:20:illegal character [Error] 1:20:syntax error [Error] 1:40:illegal character [Error] 1:49:missing ; before stateme...

Java YUI Javascript-Compressor Error

I am building a build script for our web development team. We will be using this script to prepare all our front-end code for production. I am using the YUI Compressor to compress our CSS and JavaScript files. Everything works fine for the CSS portion but I am running into an issue the JavaScriptCompressor class instance. I am importing...

Resource (JS, CSS) compression, minification, and versioning in ASP.NET.

We’re coming to a big release in a web project I work on, and I’m starting to think more and more about javascript/css performance and versioning. I’ve got a couple high level ideas so far: Write (or customize) an http handler to do this for me. This would obviously have to handle caching as well to justify the on the fly IO that wou...

maven yui compression on war:war

I'm trying to automatically compress both CSS and JS using maven and this plugin. I want to compress when the goal war is executed but I'm not figuring how: <build> <finalName>${artifactId}-${version}-production</finalName> <plugins> <plugin> <groupId>net.sf.alchim</groupId> <artifactId>yuicompressor-maven-plugin</ar...

Concantenating CSS and JS prior to compressing? Tools? Best Practices?

I'm working on a one-page site that is incorporating about a dozen .js files and and maybe a half dozen .css files. Most of the .js files are jQuery plugins. Aside from a base css file, the CSS files are for the corresponding jQuery plugins. YUI Compressor seems to be a favorite for compressing CSS and JS files. However, it only compre...

Use Packer AND YUI Compressor?

I've been looking for a way to easily compress my .js locally before deployment. I finally found a command line batch script that works with YUICompressor and Packer. The problem I was having was that Packer was corrupting my files. Figuring it was an older version, I just manually took my YUIcompressed .js and ran it through the online...

Should I use the YUI Compressor or the new Google Closure compiler to compress my JavaScript?

YUI Compressor was the consensus best tool for minimizing, but Closure seems like it could be better. ...

django management command + yui compressor

Can I call yui compressor: java -jar yuicompressor-x.y.z.jar [options] [input file] from a django management command and if so how do I go about doing it? I develop locally on Window and host on Linux, so this seem like a solution that will work on both. ...

Path Error, YUI compressor .NET

I'm trying to use YUI compressor for .NET as an MSBUILD event $(MSBuildBinPath)\msbuild.exe "$(ProjectDir)MSBuild\MSBuildSettings.xml" \p:CssOutputFile="$(ProjectDir)styles.css" \p:JavaScriptOutputFile="$(ProjectDir)scripts.js" This is my Pre-Build event command line... In the output it seems like the task succeeds because it says "Fi...

YUI Compressor in low memory environment

Is there a way to reduce the memory required by the YUI compressor or is there another compressor able to run via command line in "low" memory environments? My hosting provider has limits on the amount of memory and virtual memory I can use from the shell. Currently it looks like: ulimit -m 200000 -v 200000. The -v argument is the one...

Minify inline javascript during build for ASP.net?

We have a handful of ASP.net pages that include more than 50+ lines of javascript specific to that page. We'd like to minify that javascript during our CruiseControl build process. We already use the YUI Compressor to compress our full javascript and css files. But we can't figure out how to do the Inline javascript. Is there an MSBu...