Posts made by Tim Hunt

Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If the JavaScript is already minified, and is not the source of an AMD module, then probably bset not to put it in the amd foolder.

(In my plugins, in cases like this, I tend to put it in another folder called js, or something like that.

Also, the way your code is written at hte moment, there is no guarantee which order the various bits of JavaScript will load, so you have a race condition.

https://github.com/moodleou/moodle-qtype_recordrtc is one of my plugins where JS code in the AMD folder loads libraries from the JS folder and uses them.