js/reveal.js
/**
	 * Loads the dependencies of reveal.js. Dependencies are
	 * defined via the configuration option 'dependencies'
	 * and will be loaded prior to starting/binding reveal.js.
	 * Some dependencies may have an 'async' flag, if so they
	 * will load after reveal.js has been started up.
	 */
Loads the dependencies of reveal.js. Dependencies are
defined via the configuration option 'dependencies'
and will be loaded prior to starting/binding reveal.js.
Some dependencies may have an 'async' flag, if so they
will load after reveal.js has been started up.
Loads the dependencies of reveal . js . Dependencies are defined via the configuration option ' dependencies ' and will be loaded prior to starting / binding reveal . js . Some dependencies may have an ' async ' flag if so they will load after reveal . js has been started up .
function load() {
		var scripts = [],
			scriptsAsync = [];
		for( var i = 0, len = config.dependencies.length; i < len; i++ ) {
			var s = config.dependencies[i];
			if( !s.condition || s.condition() ) {
				if( s.async ) {
					scriptsAsync.push( s.src );
				}
				else {
					scripts.push( s.src );
				}
				if( typeof s.callback === 'function' ) {
					head.ready( s.src.match( /([\w\d_\-]*)\.?[^\\\/]*$/i )[0], s.callback );
				}
			}
		}
		function proceed() {
			head.js.apply( null, scriptsAsync );
			start();
		}
		if( scripts.length ) {
			head.ready( proceed );
			head.js.apply( null, scripts );
		}
		else {
			proceed();
		}
	}
function load ( ) { var scripts = [ ] , scriptsAsync = [ ] ; for ( var i = 0 , len = config . dependencies . length ; i < len ; i ++ ) { var s = config . dependencies [ i ] ; if ( ! s . condition || s . condition ( ) ) { if ( s . async ) { scriptsAsync . push ( s . src ) ; } else { scripts . push ( s . src ) ; } if ( typeof s . callback === 'function' ) { head . ready ( s . src . match ( / ([\w\d_\-]*)\.?[^\\\/]*$ / i ) [ 0 ] , s . callback ) ; } } } function proceed ( ) { head . js . apply ( null , scriptsAsync ) ; start ( ) ; } if ( scripts . length ) { head . ready ( proceed ) ; head . js . apply ( null , scripts ) ; } else { proceed ( ) ; } }
Loads the dependencies of reveal.js.
Loads the dependencies of reveal . js .
// Load if there's no condition or the condition is truthy // Extension may contain callback functions // Called once synchronous scritps finish loading // Load asynchronous scripts // Load synchronous scripts