diff --git a/static/index.js b/static/index.js index 588b126ea..b1a38c601 100644 --- a/static/index.js +++ b/static/index.js @@ -3,6 +3,10 @@ window.onload = function() { // Skip "?loadSettings=". var loadSettings = JSON.parse(decodeURIComponent(location.search.substr(14))); + ModuleCache = require('../src/module-cache'); + ModuleCache.register(loadSettings); + ModuleCache.add(loadSettings.resourcePath); + // Start the crash reporter before anything else. require('crash-reporter').start({ productName: 'Atom', @@ -16,10 +20,6 @@ window.onload = function() { require('coffee-script').register(); require('../src/coffee-cache').register(); - ModuleCache = require('../src/module-cache'); - ModuleCache.register(loadSettings); - ModuleCache.add(loadSettings.resourcePath); - require(loadSettings.bootstrapScript); require('ipc').sendChannel('window-command', 'window:loaded') }