|
Currently I am using the site at http://javascriptcompressor.com/ to compress my JavaScript. Is there any other standalone JavaScript compressing tool?
Started by Kombuwa on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
No problem with compressing and it does not ....
The following are standalone:
JSMin YUI Compressor packer http://www.cortex-creations.com/phpjso/ http://www.codeproject.com/KB/cs/jscompress.aspx I'm using YUI Compressor and it works fine for me .
|
|
I was wondering if there was a way to compress javascript in realtime, much like gzip works for HTML (and CSS apparently)?
I don't want to have to compress my file manually before upload everytime, I want the server to do it for me without any added work...
Started by David on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
The other option is to tell your web server to compress files before] !no-gzip !gzip-only-text....
By using YUI compress it before the upload.
Gzip works on all text, including JavaScript
If you want to do more compression (e.g.
|
|
Do you know a good syntax checker and compressor for JavaScript?
We are currently using JSLINT as syntax checker and YUI for compression. Note we are using the library ExtJS for UI.
Started by rossoft on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You might want to consider Google's newly.
Types, and warns you about other common JavaScript pitfalls.
|
Ask your Facebook Friends
|
Duplicate: Best javascript compressor Which javascript minification library produces better results? What is the best method to reduce the size of my Javascript and CSS files?
So far I have seen these tools to compress javascript files
Packer List item...
Started by dev.e.loper on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
You also won't get the decompression lag that you get with compressed javascript on each page JavaScript....
The server settings to use gzip compression, then you get compression on any text file, javascript, html, etc.
|
|
Please note that this question is intended to be a bit more on the theory side of the subject, but besides stripping whitespace what other techniques are used for JavaScript Compression ?
Started by Rob on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Stripping whitespaces compress file by compression algorythm (gzip, deflate) most of the space is saved.
|
|
I want to compress my 2000+ lines og javascript and I have tested both http://dean.edwards.name/packer/ and http://closure-compiler.appspot.com/home .
But in both cases, the compressed script gives me errors. An example of a error is jQuery(document)....
Started by Steven on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Bizarre, I know.
Sf.com/yui/
Make sure you have a semicolon at the beginning of every JavaScript file.
|
|
I have been trying, unsuccessfully, to get a HTML page to load an external GZIP compressed javascript file from the local filesystem using a HTML file such as this:
<html> <head> <script src="test.js.gz" type="text/javascript"></script...
Started by Barkholt on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Sorry!
You could resort to uncompressed files, or decompress them before loading the web page... .
So I think the short answer is no.
GZIP (de)compression of files is part of the HTTP/1.1 protocol which isn't used by browsers for loading local files.
|
|
I look for tool which can compress JavaScript source code. I found some web tools which only deletes whitespace chars? But maybe exist better tool which can compress user's function names, field name, deletes unused fields, others.
Started by mykhaylo on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
It then prints out the token, if you are using Apache, take a look... .
Considering there is this option by analyzing the source JavaScript file to understand how it is structured.
A tool often used to compress JS code is the YUI Compressor .
|
|
It looks like IIS httpCompression compresses your files. If this compression is in place, what is the reason to compress files using compression tools like: Packer, JSMin or Yahoo Compressor?
Started by dev.e.loper on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Try "zipping" your normal and your minified javascript files and see what size they both.
And not compression.
|
|
I'm using django-compress to shrink my javascript files. However, I am now having trouble debugging through it because everything is squished. I believe stackoverflow use some kind of js compression too. How do you go about to debug through your javascript...
Started by Thierry Lam on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Some suggestions:
Don't compress until you deploy to production Reload your source code after the compress code; it will write over the compressed code When it's worth the investment, I take.
|