Scanning the code of my recently concluded project using jQuery and jQuery Mobile threw light on a number of issues with using these two libraries in a project. Yes, there are lot of positive points of using jQuery/jQM but let’s jot down few negative points.
In summary, it’s very difficult to maintain the application build using vanilla jQUery and jQueryMobile.
Off late, we have been stressing our clients to use jQuery and jQueryMobile with frameworks like Backbone.js and require.js. Backbone takes care of the segregation of your code into views and models. Require JS takes care of the dependency management, optimizing the loading of JS files and also organizing the code into modules. If you have to create maintainable jQuery code, you’ll have to use these libraries alongwith.
The moral of the story is, never use jQuery/jQM alone in your project. Use it with Backbone/require or even KnockOut.js.