In MSDN, DevLabs laid out a
Doloto program designed to optimize any Ajax applications. In accordance with its name, Doloto cuts the code to the required minimum, so the application loads the client faster and starts to run faster.
The program analyzes the source code and selects the fragment of JavaScript code that is directly necessary for initializing the program. The functions are profiled on the client machine via the local proxy server http: // localhost: 8888 during the execution of the Ajax application in the browser. At the same time, all “unnecessary” functions are marked with labels (timestamps). An optimized Ajax application code is generated directly on the client machine, in which “unnecessary” functions are replaced with small stubs. This code will then be loaded in the background or as needed, after the initialization of the main script. The optimized code is stored on the hard disk of the client computer. Thus, it is possible to optimize other people's applications, even without having access to their servers, see the
Doloto FAQ .
The program was tested on popular Ajax-interfaces and got an impressive result.
With the default settings, it compresses the Ajax code by an average of 46%, and after proper configuration, by 66%. Ajax scripts from Google Docs and Google Maps are compressed by the Microsoft program by 80-90%. Even if the optimization is not so significant, the download speed and the beginning of the execution of Ajax programs still accelerate by 30-40%, the
developers say , depending on the parameters of the network connection.
')
