@world.absorb
def wait_for_requirejs(dependencies=None):
 if (not dependencies):
  dependencies = ['jquery']
 if (dependencies[0] != 'jquery'):
  dependencies.insert(0, 'jquery')
 result = load_requrejs_modules(dependencies)
 if (result and ('xmodule' in dependencies)):
  result = wait_for_xmodules_to_load()
 return result

@ world . absorb def wait_for_requirejs ( dependencies = None ) : if ( not dependencies ) : dependencies = [ 'jquery' ] if ( dependencies [ 0 ] != 'jquery' ) : dependencies . insert ( 0 , 'jquery' ) result = load_requrejs_modules ( dependencies ) if ( result and ( 'xmodule' in dependencies ) ) : result = wait_for_xmodules_to_load ( ) return result
if requirejs is loaded on the page .