AnsweredAssumed Answered

JavaScript Optimizer (jso.arcgis.com)

Question asked by sagunn on May 20, 2014
Latest reply on May 28, 2014 by sagunn
Hi all,

The JS Optimizer at http://jso.arcgis.com was recently released.  Has anyone had a chance to try it yet?

I compiled a list of modules that my app uses in a plain text file and built it through the system.  Extracted it to my server, included the script tag like so:
<script src="js/dist/dojo/dojo.js" data-dojo-config="async: true"></script>

But it does not load.  The console reports the following on load:
/js/dist/dojo/fx/Toggler.js 404 (Not Found)  on line 26 of dojo.js

The problem is Toggler.js is in my module list on the build (it's a dep) so I'm not sure what's going on...Could it be that I have a custom dojoConfig var defined before loading dojo.js? It has some custom packages, among them the latest version of dgrid.

Very nice tool, looking forward to enjoying the benefits of a compact API on my app.

Outcomes