<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Order of Require in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522789#M48734</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/" rel="nofollow" target="_blank"&gt;this&lt;/A&gt;&lt;SPAN&gt; should clear up a lot of your questions. In addition, since all modules are loaded at the beginning, the order doesn't matter, as long as you keep the order in your require([]) the same as in your following function() and put "dojo/domReady!" last in your require([]) list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Apr 2014 11:55:44 GMT</pubDate>
    <dc:creator>TimWitt</dc:creator>
    <dc:date>2014-04-24T11:55:44Z</dc:date>
    <item>
      <title>Order of Require</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522788#M48733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1.&amp;nbsp; Is there a specific order in which the below have to follow i.e. the PARSER has to come before the MAP&amp;nbsp; or the READY before the connect?&amp;nbsp; or can I place them in ANY order as long as the order is the same in the REQUIRE as it is in the FUNCTION&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2.&amp;nbsp; I noticed the containers and Dom/Ready do not require anything in the Function why is that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; require([ &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/ready", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/on", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/_base/connect", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/dom-construct",&amp;nbsp; "dojo/keys", "esri/SnappingManager", "esri/dijit/Measurement", "esri/sniff", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dojo/parser", &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "dijit/registry",&amp;nbsp;&amp;nbsp; "dijit/layout/BorderContainer", "dijit/layout/ContentPane",&amp;nbsp; "dijit/layout/AccordionContainer",&amp;nbsp; "dojo/domReady!" &amp;nbsp;&amp;nbsp;&amp;nbsp; ], function( &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ready, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connect, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dom, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; domConstruct,&amp;nbsp; keys, SnappingManager, Measurement, has, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parser, &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; registry &amp;nbsp;&amp;nbsp;&amp;nbsp; ) {&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 11:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522788#M48733</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-04-24T11:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Order of Require</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522789#M48734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jay&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://blogs.esri.com/esri/arcgis/2013/10/14/the-abcs-of-amd/" rel="nofollow" target="_blank"&gt;this&lt;/A&gt;&lt;SPAN&gt; should clear up a lot of your questions. In addition, since all modules are loaded at the beginning, the order doesn't matter, as long as you keep the order in your require([]) the same as in your following function() and put "dojo/domReady!" last in your require([]) list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 11:55:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522789#M48734</guid>
      <dc:creator>TimWitt</dc:creator>
      <dc:date>2014-04-24T11:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Order of Require</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522790#M48735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Containers dont need aliases if you only use them in defined HTML&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you try to create them programmatically (new BorderContainer) you will need an alias.&amp;nbsp; It is my opinion, for both readability of code and preventing errors down the road, to just add aliases for everything.&amp;nbsp; It doesn't hurt anything and can prevent alot of problems&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 12:33:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522790#M48735</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2014-04-24T12:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Order of Require</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522791#M48736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your thoughts....both of ya....appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thats what I was figuring...I had the containers aliases in there at one time but took them out as another example didnt have them in there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cool...thanks....&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Apr 2014 12:51:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522791#M48736</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2014-04-24T12:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Order of Require</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522792#M48737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;just to pile on...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;when each individual module is loaded, its own dependencies are resolved automatically by the dojo loader, and additional requests for supporting code are made automatically, if necessary.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the require callback isn't triggered until all the asynchronous responses have been received.&amp;nbsp; this allows us to load modules in whatever order we like.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Apr 2014 16:54:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/order-of-require/m-p/522792#M48737</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2014-04-25T16:54:31Z</dc:date>
    </item>
  </channel>
</rss>

