-
☆ A M B ☆
- 1,056 Posts
For anyone interested in running YUI Compressor themselves, here’s quick how-to:
1. Make sure
Java 1.4+ is installed
2. Download YUI Compressor from
http://www.julienlecomte.net/yuicompressor/
3. Browse to
web\yuicompressor-2.2.5 (or whatever version you’re working with)
4. Place the JavaScript file you want to compress in this directory (e.g.
uncompressed.js )
5. From command line, execute the following in the same directory:
java -jar yuicompressor-2.2.5.jar uncompressed.js -o compressed.js
(Optionally pass the --charset flag if you want to define your character set)
The required mootools functions for AjaxSearch are about a 42kb. 32kb with YUI compression
Compared to the 87kb of the complete mootools library, it could be interesting to download only these functions.
I will try to test the YUI version too and may be as an option propose this limited mootools pack.
For AjaxSearch js functions pack, for 6kb It’s useless.
-
MODX Staff
- 12,272 Posts
The manager also uses Mootools for some TVs and possible the menu tree as well as possibly the Doc Manager module.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
I agree with pixelchutes, it’s better to put the whole mootools library in MODx, if we want it... the choice is only between putting it all, or do not put at all...
Think about all plugins/snippets/chunks/effects that will come after the release of MODx 0.9.7, what if that snippet with "that beautiful menu effect" uses a mootools plugin that is not included with the MODx mootools? you should update it by hand, and are you sure that everything else remains compatible?
So, if the manager of 0.9.7 uses mootools, please put the whole 1.11 mootools inside the manager and compress it with YUI if you want.
We are talking about 50-100KB, not 100 MB!! and remember that the browser mantains a cache, so you have to download mootools only once per session!
Daniele "MadMage" Calisi
-
☆ A M B ☆
- 1,056 Posts
@madmage,
The updated mootools library will actually be for the 0.9.6.2 branch.
0.9.7’s manager is actively being developed using ExtJS 2. (see
http://www.extjs.com for more info)