backbone.js - is it good to use amd version of backbone, jquery, underscore, etc? -


i starting project structure scratch. using require.js, backbone, underscore, bootstrap, etc. thinking use shim config load non amd compatible of backbone, underscore,etc. but, now, think better use amd (asynchronous module definition) compatible version of them since allows load parallely resources. but, can find reliable source amd compatible underscore, backbone , bootstrap? , can assured alz latest version of backbone, bootstrap , underscore amd compatble version. cause break later?

in word, can suggest me use amd compatible version of them or tade off use shim config load non-amd version of them against loading time. planning use require-jquery amd.

i can provide 1 point of view, experience, @ stage, it's better shim dependencies. don't feel amd adopted enough yet kind of support you'll need make work nicely using amd versions.

in particular, had problem testing (jasmine), jasmine tests referring 1 "jquery" , application code referring one, because neither globals. gave , switched using shims, , managed tests work (although not without work).

not sure if help, here personal notes on integrating requirejs backbonejs/rails stack. section on stubbing dependencies might of interest if you'll testing client-side code. hit quite few snags along way...


Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -