Skip to content

Instantly share code, notes, and snippets.

@stdavis
Created August 6, 2012 23:08
Show Gist options
  • Select an option

  • Save stdavis/3279380 to your computer and use it in GitHub Desktop.

Select an option

Save stdavis/3279380 to your computer and use it in GitHub Desktop.
run.js
(function () {
require({
baseUrl: '',
packages: [
'dojo',
'dijit',
'dojox',
'app',
'agrc',
'ijit',
'esri'
],
// This is a hack. In order to allow app/main and app/run to be built together into a single file, a cache key needs
// to exist here in order to force the loader to actually process the other modules in the file. Without this hack,
// the loader will think that code for app/main has not been loaded yet and will try to fetch it again, resulting in
// a needless extra HTTP request.
cache: {}
}, ['app', 'esri/main']);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment