Widget:Flickr-id

mw.loader.getScript( 'https://example.org/x-1.0.0.js' ) .then(   function  {        // Script succeeded. You can use X now.    },    function ( e ) {        // Script failed. X is not available        mw.log.error( e.message ); // => "Failed to load script"    } );