js-modules/run_prettify.js
function onLangsLoaded() {
    if (autorun) {
      contentLoaded(
        function () {
          var n = callbacks.length;
          var callback = n ? function () {
            for (var i = 0; i < n; ++i) {
              (function (i) {
                win.setTimeout(
                   function () {
                     win['exports'][callbacks[i]].apply(win, arguments);
                   }, 0);
               })(i);
            }
          } : void 0;
          prettyPrint(callback);
        });
    }
  }
function onLangsLoaded() {
    if (autorun) {
      contentLoaded(
        function () {
          var n = callbacks.length;
          var callback = n ? function () {
            for (var i = 0; i < n; ++i) {
              (function (i) {
                win.setTimeout(
                   function () {
                     win['exports'][callbacks[i]].apply(win, arguments);
                   }, 0);
               })(i);
            }
          } : void 0;
          prettyPrint(callback);
        });
    }
  }
function onLangsLoaded ( ) { if ( autorun ) { contentLoaded ( function ( ) { var n = callbacks . length ; var callback = n ? function ( ) { for ( var i = 0 ; i < n ; ++ i ) { ( function ( i ) { win . setTimeout ( function ( ) { win [ 'exports' ] [ callbacks [ i ] ] . apply ( win , arguments ) ; } , 0 ) ; } ) ( i ) ; } } : void 0 ; prettyPrint ( callback ) ; } ) ; } }
If this script is deferred or async and the document is already loaded we need to wait for language handlers to load before performing any autorun.
If this script is deferred or async and the document is already loaded we need to wait for language handlers to load before performing any autorun .