I need to use Q
library (http://documentup.com/kriskowal/q/) in the browser. I would like to use RequireJS
to load this library, but I don't have any idea how to do this. I know how to load my own module, but I can't do it with Q
. It has some function:
(function (definition) {
//some another code here***
// RequireJS
} else if (typeof define === "function" && define.amd) {
define(definition);
How can I load Q
and then use it in another module?