compressor for javascript and css [closed] - javascript

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What compressor is the best for javascript and css minified ? I am using YUI compressor , now. Any other best than YUI compressor ?

For JavaScript you could check for your self via the CompressorRater.
Another JavaScript compressor to note is the one that Google uses closure, checkout this article, which is not featured there.

I like Shrinksafe
Many other tools also shrink
JavaScript files, but ShrinkSafe is
different. Instead of relying on
brittle regular expressions,
ShrinkSafe is based on Rhino, a
JavaScript interpreter. This allows
ShrinkSafe to transform the source of
a file with much more confidence that
the resulting script will function
identically to the file you uploaded.
For CSS you can use Minify

I'm using JSMin service. I don't know if it's better or worse then YUI Compressor but it works well.

try http://shrinker.ch . it uses yuicompresspor for css files and google closure for javascript + some kind of magic.

Related

What is the best way to minify CSS and JavaScript on an ASP.NET server? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I've got CSS and JavaScript on an ASP.NET server running .NET 4 with C#. How can I send minified CSS and JavaScript response to client?
you can use Microsoft Ajax Minifier
http://www.asp.net/ajaxlibrary/Download.ashx
I think you need a minifier, there are many online minify sites available you can use like JSCompress
You can use the Closure-tool. It also has a RESTful api which can be used easily.
We use http://www.codethinked.com/squishit-the-friendly-aspnet-javascript-and-css-squisher it's really easy and good to use. You can simply choose debug or production mode in your configuration file.

jQuery is JS library. what the term library means? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
i don't understand the meaning of the word library -
regarding to jQuery: will it be right to say that "library" is a huge file with many plug ins that are ready to use?
jQuery is a fast and concise JavaScript Library that simplifies HTML
document traversing, event handling, animating, and Ajax interactions
for rapid web development. jQuery is designed to change the way that
you write JavaScript.
All this means is that jQuery itself does not do anything. A library is "a collection of resources used to develop software". jQuery allows you to write cross-browser JavaScript a heck of a lot easier than it would be without it.
A library is something that extends a base langage. So in this definition jQuery is a library
A small(not huge!!!) file (32K only)... With many many functions and features.
Libraries contain code and data that provide services to independent programs. This encourages the sharing and changing of code and data in a modular fashion, and eases the distribution of the code and data.
Wikipedia

Complex js obfuscator [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I need a complex js obfuscator so that the js file won't be easy to reverse with a public tool like http://jsbeautifier.org/
You may try jscrambler.com. It's the only one I know that could help you. Check what it does.
You can shrink variable names when you use Dean Edward's packer. While this can be reversed, it does leave you with pretty unreadable code as the variables aren't easily identifiable.
http://dean.edwards.name/packer/
Use Packer algo http://dean.edwards.name/packer/
do check the options 'Base62 encode' and 'shrink variables'. This will obfuscate the code to a certain limit but still, as #musicfreak said, anyone who is determined can still make out the code.
If you use a JavaScript library, consider Dojo Toolkit which is compatible (after minor modifications) with the Closure Compiler's Advanced mode compilation.
http://dojo-toolkit.33424.n3.nabble.com/file/n2636749/Using_the_Dojo_Toolkit_with_the_Closure_Compiler.pdf?by-user=t
Code compiled with Closure Advanced mode is almost impossible to reverse-engineer, even passing through a beautifier, as the entire code base (includinhg the library) is obfuscated. It is also 25% small on average.
JavaScript code that is merely minified (YUI Compressor, Uglify etc.) is easy to reverse-engineer after passing through a beautifier.
Google Closure Compiler.
http://code.google.com/closure/compiler/
I use it on advanced. Read the docs about exporting public methods etc.
http://code.google.com/closure/compiler/docs/api-tutorial3.html
It rocks.

What are the best AJAX development tools? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
can anyone please help me to identify the best AJAX development IDE or tools base on the advantages and disadvantages? Thank you
I like too much Aptana Studio.
For the "tools" part of your question, I have found the following combo quite good:
Firefox + Firebug + FireQuery + FireRainbow + PageSpeed + Web Developer
Have a look at the up-coming WebStorm from Jetbrains.
Upsides:
Support for Javascript and extended frameworks, such as YUI, JQuery, Dojo and Prototype; code completion, refactoring and code inspection. Mozilla-based Javascript debugger
From the help file:
Smart, DOM-based, browser-type aware JavaScript code completion for:
Keywords, labels, variables, parameters and functions.
User defined and built-in JavaScript functions.
JavaScript namespaces.
JavaScript and AJAX error and syntax highlighting.
JavaScript and AJAX-aware refactorings:
Rename a file, function, variable, parameter, or label (both directly and via references).
Move/Copy a file.
Safe Delete a file.
Extract inlined script from HTML to a JS file.
Extract function.
Numerous JavaScript and AJAX-aware code inspections and quick-fixes.
JavaScript and AJAX Intention Actions that let create various application elements.
JavaScript and AJAX code formatting and folding.
JavaScript and AJAX code blocks, live
Downside:
Not free and not yet released (there's a 45 day trial on the Jetbrains website)

Anyone use Pyjamas (pyjs) python to javascript compiler (like GWT..) [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Has any one used this? I don't have a large background in Javascript and this lib looks like it may speed things along.
www.pyjs.org
yep. me. i'm the lead developer. drop by on groups.google.com "pyjamas-dev" and say hello.
Yes, I've used. It's amazing! I think it's much easier to use than the Java-based GWT. I found the Google Code wiki on it very practical: http://code.google.com/p/pyjamas/w/list
If you're just starting out with it, then definitely check out the showcase: http://pyjs.org/showcase/Showcase.html for usable snippets/widgets
As of now, it is not supported on M$ Windows, but runs beautifully on Linux.
yes it works fine on windows (it's a compiler: you just need python, to run the conversion to javascript). but if you're thinking of pyjamas-desktop, 0.6 added support for MSHTML as one of the engines, so that works too.
Yes. I've used pyjs to build minesweeper game: http://pymines.appspot.com/

Categories