Mixing jQuery and YUI together in an app, is it easily possible?

I have to preface this with the fact that I love jQuery as a JavaScript language extension and YUI as a rich set of free controls. So here is my question, is there going to be any problems down the line if I mix jQuery and YUI together in an MVC app I am working on.

I want to use jQuery for the heavy lifting on the DOM and I want to use YUI for the rich user control set. This is an internal application and will never see the light of day outside of the organization I work for.

If anybody has experience with mixing these two frameworks I would love to hear what your experience has been.

Add Comment
1 Answer(s)

yes, using jquery along side YUI is definitely possible, particularly because both jquery and YUI have taken strong steps to prevent global namespace pollution.
However, implementing such a combination unnecessarily provides a lot of redundant functionality. I would urge you to use YUI3 which provides most of the functionality of Jquery and much more. YUI3 has a much more cleaner and succinct syntax and is very well documented.
However it is possible that you are using some jquery plugin, whose YUI alternative is not available. In such case I would recommend you take a look at Jquery UI or wijmo for your UI needs or,use a light weight UI toolkit like UKI.
Alternatively, you could also take a look at ExtJS that has a Jquery adapter available through which you can take advantage of your familiarity with jquery as well as the rich widgets of extjs.

Answered on April 6, 2016.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.