|
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 .
|
|
What do you use to minimize and compress JavaScript libraries?
Started by flybywire on
, 7 posts
by 7 people.
Answer Snippets (Read the full thread at stackoverflow):
I have/*-min.js"/> <targetfile....
I use a simple (3-4 line) wrapper script around JavaScript::Minifier::XS your javascript:
http://www.crockford.com/javascript/jsmin.html
I too use YUI Compressor.
In a continuous integration process.
|
|
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.
|
Ask your Facebook Friends
|
Any website with a non-trivial amount of Javascript code is going to want to compress it for deployment. What's the best way to do this as part of the App Engine deployment process while still accessing the uncompressed javascript for easy development...
Started by Brandon Thomson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
An application is deployed or not and put a link to a different javascript file if it is, but doing.
|
|
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.
|
|
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 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'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.
|
|
I have found the DIY Map.. an excellent map tool if you are ever looking for one. Aside from how fantastic it is... the associated XML file can get fairly large (it contains map setting, country names etc). I was wondering if it were possible to compress...
Started by Mark on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
You shouldn't do that in javascript;
JS scheme in JavaScript will be slow due to the extra string processing you will be doing on the client.
Into your web server and let your browser to uncompress it .
|