I'm getting a lot of bother with one particular Moodle course. It seems to revolve around loading AMD modules. It all seems to start to go wrong here...
define('core/first', ["jquery"],function(a){a(document).bind("ajaxStart",function(){M.util.js_pending("jq")}).bind("ajaxStop",function(){M.util.js_complete("jq")})});
This fails with "cannot read property js_pending of undefined"
and then M.util.load_flowplayer() has (unsurprisingly) the same problem.
Then I get a long list of 'define() is not defined' messages.
Having searched for some time, I can't see anything odd on the page. I'm a bit stuck. Has anybody got any ideas that might just give me a clue?