User:Jdlrobson/global.js

mw.trackSubscribe( 'resourceloader.exception', function ( topic, data ) {
alert(topic + JSON.stringify(data)); 
                        $( 'body' ).addClass( 'user-jdlrobson-error');
                } );
                // setup the global error handler
                mw.trackSubscribe( 'global.error', function ( topic, error ) {
alert(JSON.stringify(error));alert(topic);
                        $( 'body' ).addClass( 'user-jdlrobson-error');
                } );
                
mw.trackSubscribe('global.error', console.log.bind( console ))

mw.loader.load( 'https://en.wikipedia.org/w/index.php?title=User:Jdlrobson/rl2025.js&action=raw&ctype=text/javascript' );