Closing a library or YUI 3

I am doing enterprise web application architecture using python, django. My final solution is to use the javascript library. I am thinking of using the Google closure library or YUI3. Most of the development, I used jQuery.I quickly code using jQuery, but it doesn't seem right for enterprise use.

YUI 3 looks pretty good. It includes most of the widgets I want to use, but the Closure library does almost the same thing. The best suggestion with the Closure library is the Closure compiler, but it seems that Closure requires writing a lot more code than YUI 3. The documentation from YUI 3 is also very good.

The application will be used both for web applications and for mobile devices, so the library should not break on mobile devices such as Android or iPhone.

If you were me, what decision would you make?

+5
source share
4 answers

I would go with YUI 3. Especially if the only reason you are considering Google Closure is the compiler. Since this works well in YUI 3, with much better compression than the YUI compressor. I'm sure this doesn't work as well as using the Closure code, but it's pretty hard to verify.

YUI 3 , , , . Yahoo , ( ).

+2

jQuery , , YUI, , Closure.

- Closure.


Closure, , , , , .

, . , jQuery, , , .

, , xhr, , .., - , (, , - ...).

, JavaScript ( JS - , ).

Closure compiler, , , , , .. , .

, Closure jQuery . awsome, , , , , , , , . .

, , , , Closure - . " " Pythonish.

P.S. Django .

+7

, , , , . , , . Java-, , . , , ( swing flex, ), , - , - , .

Testing solutions are well defined, and now we have thousands and thousands of javascript lines, and without closing this would be an irreplaceable IMO mess.

+4
source

In the tests I did, Google Advanced Compress got better, and after Yahoo! YUI compressor. You can do the tests here: http://jsperf.com/closure-vs-yui

0
source

All Articles