profile-loader.js
function( cb ) {

		// If we are running in node.js replace the THREE.js XHRLoader
		// with an offline version.
		var isBrowser=new Function("try {return this===window;}catch(e){ return false;}"); // browser exclude
		if (!isBrowser()) {

			// Expose 'THREE' for non-compatible scripts
			global.THREE = THREE;

			// Override XHR Loader
			global.THREE.XHRLoader = require('./lib/FileXHRLoader');

		}

		// Trigger callback
		if (cb) cb();

	}
function( cb ) {

		// If we are running in node.js replace the THREE.js XHRLoader
		// with an offline version.
		var isBrowser=new Function("try {return this===window;}catch(e){ return false;}"); // browser exclude
		if (!isBrowser()) {

			// Expose 'THREE' for non-compatible scripts
			global.THREE = THREE;

			// Override XHR Loader
			global.THREE.XHRLoader = require('./lib/FileXHRLoader');

		}

		// Trigger callback
		if (cb) cb();

	}
function ( cb ) { // If we are running in node.js replace the THREE.js XHRLoader // with an offline version. var isBrowser = new Function ( "try {return this===window;}catch(e){ return false;}" ) ; // browser exclude if ( ! isBrowser ( ) ) { // Expose 'THREE' for non-compatible scripts global . THREE = THREE ; // Override XHR Loader global . THREE . XHRLoader = require ( './lib/FileXHRLoader' ) ; } // Trigger callback if ( cb ) cb ( ) ; }
Initialize profile loader
Initialize profile loader