views:

76

answers:

2

jQuery is great especially its plugin but I do not like to add a lot of script tags in my html. Is there something similar to dojo.require? So I can manage those plugins easier and cleaner.

A: 

Yes. jQuery.require in 1.4 or Lazy loader in 1.3

bogdanvursu
+3  A: 

jQuery.require does not exist in 1.4, it was in an commit to the tree while 1.4 was being developed but removed before the final release.

RequireJS is a loader that has given special care to work with jQuery. It has its roots in the dojo.require, but it follows CommonJS idioms and optimized for in-browser use.

Disclaimer, I am the main developer of RequireJS.

jrburke