Skip to content

Commit

Permalink
updated development htmls with simplified phet-io preloads, phetsims/…
Browse files Browse the repository at this point in the history
  • Loading branch information
zepumph committed Jan 25, 2017
1 parent 9668bb9 commit fa52745
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions circuit-construction-kit-black-box-study_en.html
Original file line number Diff line number Diff line change
Expand Up @@ -46,22 +46,7 @@
document.getElementById( 'splash' ).src = '../brand/' + brand + '/images/splash.svg';

// Preloads, with more included for phet-io brand
var preloads = ( brand === 'phet-io' ) ? [
'../sherpa/lib/jquery-2.1.0.js',
'../sherpa/lib/lodash-2.4.1.js',
'../sherpa/lib/FileSaver-b8054a2.js',
'../assert/js/assert.js',
'../query-string-machine/js/QueryStringMachine.js',
'../chipper/js/initialize-globals.js',
'../chipper/js/getVersionForBrand.js',
'../sherpa/lib/seedrandom-2.4.2.js',
'../sherpa/lib/game-up-camera-1.0.0.js',
'../sherpa/lib/base64-js-1.2.0.js',
'../sherpa/lib/TextEncoderLite-3c9f6f0.js',
'../sherpa/lib/lz-string-1.4.4.js',
'../sherpa/lib/jsondiffpatch-0.1.31.js',
'../phet-io/js/phetio-query-parameters.js'
] : [
var preloads = [
'../sherpa/lib/jquery-2.1.0.js',
'../sherpa/lib/lodash-2.4.1.js',
'../sherpa/lib/FileSaver-b8054a2.js',
Expand All @@ -76,6 +61,13 @@
'../sherpa/lib/lz-string-1.4.4.js'
];

if ( brand === 'phet-io' ) {
preloads = preloads.concat( [
'../sherpa/lib/jsondiffpatch-0.1.31.js',
'../phet-io/js/phetio-query-parameters.js'
] );
}

// Loads a synchronously-executed asynchronously-downloaded script tag, with optional data-main parameter.
// See http://www.html5rocks.com/en/tutorials/speed/script-loading/ for more about script loading. It helps to
// load all of the scripts with this method, so they are treated the same (and placed in the correct execution
Expand Down

0 comments on commit fa52745

Please sign in to comment.