Almost everyone can add scripts to site to make it cool an usable. With AJAX technology we can bring sites to new level of usability.
But...
1) Additional script means additional traffic - sometimes it matters.
AJAX scripts and WYSIWYG editors can be really big (hundreds of kilobytes)
2) Why you have to share your script with all?
You spend time and money to develop script, but now everyone can get it for free from your site.
Yes, there is tons of optimizers, obfuscators, crunchers, compressors and other stuff to make scripts small and incomprehensible.
But all that tools I've seen have some imperfections.
The most widespread and annoying problem is following: not all scripts can run after obfuscating and compression!
Some tools can only delete spaces and tabs (sometimes comments) from source. It is very fast and easy, but effect is not really big.
Some obfuscators and compressors are expensive.
Everybody have a right to make scripts small and to not share his work with everyone.
Me and everyone want to have perfect tool for no money.
With this thoughts I started new project - TrickyScripter.
TrickyScripter supposed to be ultimate tool for web developer. It is next generation script optimizer (it is like Zend Optimizer for JavaScript).
It can be used both online and offline with any JavaScript-enabled browser.
TrickyScripter is free and opensource (avalible at http://ecoder.org.ua/tricky.htm)
In current version TrickyScripter can safely rearrange your code to make it smaller and faster:
- delete unneeded code and markup
- replace local variables names with shorter ones
- replace some long commands with shorter equal ones
- compact variables declarations
Also it can visualize code structure to help you refactor code, solve problems in scripts and understand third party scripts.
It is smart and will not use some techniques when optimizing functions containing "eval()" and other similar commands.
With TrickyScripter you can optimize whole script or only some functions as well.
Usually it can reduce script size by 50% and more. Smaller script can be downloaded and even executed faster (and you can save on your traffic!).
Fast site is better then slow site, isn't it?
Many cool features will be added in next version of TrickyScripter.
Want to try it? Welcome to http://ecoder.org.ua/tricky.htm !
Want to be beta tester and use new features earlier than others? Send request to scriptGuru@gmail.com
Join us!
Val Polyakh
developer, project manager
scriptGuru@gmail.com