angularjs-Quizzler icon indicating copy to clipboard operation
angularjs-Quizzler copied to clipboard

[Question] What is the purpose of Head.js in the application?

Open novabyte opened this issue 11 years ago • 1 comments

Thank you for putting together a great example of how to use RequireJS with Angular. I'm a big fan of r.js and was having trouble finding resources that demonstrated the two together.

I'm trying to understand why Head.js is used with RequireJS to load Angular? What are the disadvantages of using RequireJS directly?

(Sorry, I know that the issue tracker is a bad place to ask Qs but I wasn't sure where else to ask about this.)

novabyte avatar Jun 15 '14 10:06 novabyte

It's the same using RequireJS to load the lib files. From the comments where head.js is used you may know why, see client/assets/js/boot.js.

And one more reason I guess, Thomas(the author) may just want to separate the lib loading from application codes.

chuyik avatar Jul 31 '14 16:07 chuyik