A small simple JavaScript block to detect and alert you if an external library fails to load:
try {
switch( "undefined" ) {
case typeof $: throw "jQuery";
case typeof $.ui: throw "jQuery UI";
case typeof TinyMCE: throw "tinyMCE";
...
case typeof yourFavouriteLibrary: throw "Your favourite library";
}
} catch( missingLibrary ) {
alert("Error: failed to load " + missingLibrary);
}