function setLoaded() {
  if (moduleManager) {
    moduleManager.setLoaded();
  }
}
Records that the currently loading module was loaded. Also initiates loading
the next module if any module requests are queued. This method is called by
code that is generated and appended to each dynamic module's code at
compilation time.