<?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: Why are so many dojo modules pulled in? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202603#M18774</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;you are calling them, just indirectly.&amp;nbsp; For example you call&lt;BR /&gt;&lt;BR /&gt;dojo.require(dijit.Dialog)&lt;BR /&gt;&lt;BR /&gt;which has code&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if(!dojo._hasResource["dijit.Dialog"]){
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.require("dojo.dnd.move");
dojo.require("dojo.dnd.TimedMoveable");
dojo.require("dojo.fx");
dojo.require("dojo.window");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit._CssStateMixin");
dojo.require("dijit.form._FormMixin");
dojo.require("dijit._DialogMixin");
dojo.require("dijit.DialogUnderlay");
dojo.require("dijit.layout.ContentPane");
dojo.requireLocalization("dijit","common",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.require("dijit.TooltipDialog");
dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{
&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;so as you can see alot of the requires are being loaded by why you required.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That makes sense, and what I assumed, but I was surprised for instance to see all of the charting stuff pulled in, when not called for explicitly.&amp;nbsp; Does Dialog pull these in too, or something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 10:04:11 GMT</pubDate>
    <dc:creator>RexBradford</dc:creator>
    <dc:date>2021-12-11T10:04:11Z</dc:date>
    <item>
      <title>Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202599#M18770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm wondering if it's possible to reduce the number of unused and unwanted dojo modules being pulled in, to help reduce app load time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am explicitly requiring only these 11 modules:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.map");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.layers.osm");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.virtualearth.VEGeocoder");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.layers.FeatureLayer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.layers.KMLLayer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.dijit.Scalebar");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.toolbars.navigation"); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.BorderContainer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.layout.ContentPane");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dijit.Dialog");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("dojox.collections.Dictionary");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so these entries in Firebug's net window are hardly surprising, except maybe the first:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;firebug.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;svg.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jsapi_en-us.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;osm.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;KMLLayer.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;FeatureLayer.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Scalebar.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BorderContainer.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dialog.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ContentPane.xd.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dictionary.xd.js.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but then look at what keeps coming after those (.xd.js file extensions removed to save room):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;iframe, MapImageLayer, Popup, _LayoutWidget, cookie, _ContentPanelResizeMixin, html, loading, TimedMoveable, _FormMixin, DialogUnderlay, _DialogMixin, common, TooltipDialog, PopupBase, Chart2D, base, Tooltip, _Contained, Default, Default (twice!), Invisible, Lines, Areas, MarkersOnly, Markers, Scatter, StackedAreas, StackedLines, Columns, StackedColumns, Bars, ClusteredColumns, StackedBars, ClusteredBars, Pie, Grid, Bubble, Candlesticks, Spider, OHLC, Chart Theme, Tooltip, Base, functional, fold, scan, linear, colors, common, utils, Base, common, Base, reversed, fx, gradutils, sequence, Element, _PlotEvents, primitive, easing, Series, color, Palette, object, lambda, array, common, _base.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are over 70 in all.&amp;nbsp; A few dozen seem to be related to charting, which is ironic given:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I am using google charts for all charting, and don't try to include any dojo chart tools at all&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. On startup my app prints out two warnings from inside dojo somewhere:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXPERIMENTAL: dojox.charting.plot2d.Spider -- APIs subject to change without notice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;DEPRECATED: dojox.charting.Chart2D Use dojo.charting.Chart instead and require all other components explicitly -- will be removed in version: 2.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody know how to get dojo under control?&amp;nbsp; I thought the whole idea of Dojo was that it would only bring in stuff that's needed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex Bradford&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Direct Relief International&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Nov 2011 19:08:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202599#M18770</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2011-11-15T19:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202600#M18771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My best guess are the libraries you are including have their own dependencies that they are also bringing in, I don't know if there is much you can do about that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 14:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202600#M18771</guid>
      <dc:creator>DanielNieto_Jr</dc:creator>
      <dc:date>2011-11-16T14:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202601#M18772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My best guess are the libraries you are including have their own dependencies that they are also bringing in, I don't know if there is much you can do about that.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hmmm, thanks for the reply.&amp;nbsp; But I don't know of any libraries I'm pulling in that would do this - there are no other dojo.requires in the code.&amp;nbsp; My working assumption is that the dojo/esri library itself (&lt;/SPAN&gt;&lt;A href="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5"&gt;http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.5&lt;/A&gt;&lt;SPAN&gt;) is doing this on my behalf.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only other libraries that are not in "my" code are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ajax.aspnetcdn.com/ajax/jQuery/jquery-1.6.1.min.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ajax.aspnetcdn.com/ajax/jquery.ui/1.8.12/jquery-ui.min.js&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.google.com/jsapi"&gt;http://www.google.com/jsapi&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://bit.ly/javascript-api.js?version=latest&amp;amp;amp"&gt;http://bit.ly/javascript-api.js?version=latest&amp;amp;amp&lt;/A&gt;&lt;SPAN&gt;........&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;jquery.tmpl.min.js (beta jquery template system, copied locally)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and none of them seem very likely to be requesting dojo modules.....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex Bradord&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 14:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202601#M18772</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2011-11-16T14:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202602#M18773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;you are calling them, just indirectly.&amp;nbsp; For example you call&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require(dijit.Dialog)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;which has code&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if(!dojo._hasResource["dijit.Dialog"]){
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.require("dojo.dnd.move");
dojo.require("dojo.dnd.TimedMoveable");
dojo.require("dojo.fx");
dojo.require("dojo.window");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit._CssStateMixin");
dojo.require("dijit.form._FormMixin");
dojo.require("dijit._DialogMixin");
dojo.require("dijit.DialogUnderlay");
dojo.require("dijit.layout.ContentPane");
dojo.requireLocalization("dijit","common",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.require("dijit.TooltipDialog");
dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{
&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;so as you can see alot of the requires are being loaded by why you required.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:04:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202602#M18773</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2021-12-11T10:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202603#M18774</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;you are calling them, just indirectly.&amp;nbsp; For example you call&lt;BR /&gt;&lt;BR /&gt;dojo.require(dijit.Dialog)&lt;BR /&gt;&lt;BR /&gt;which has code&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;if(!dojo._hasResource["dijit.Dialog"]){
&amp;nbsp;&amp;nbsp;&amp;nbsp; dojo._hasResource["dijit.Dialog"]=true;
dojo.provide("dijit.Dialog");
dojo.require("dojo.dnd.move");
dojo.require("dojo.dnd.TimedMoveable");
dojo.require("dojo.fx");
dojo.require("dojo.window");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dijit._CssStateMixin");
dojo.require("dijit.form._FormMixin");
dojo.require("dijit._DialogMixin");
dojo.require("dijit.DialogUnderlay");
dojo.require("dijit.layout.ContentPane");
dojo.requireLocalization("dijit","common",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,kk,ko,nb,nl,pl,pt,pt-pt,ro,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.require("dijit.TooltipDialog");
dojo.declare("dijit._DialogBase",[dijit._Templated,dijit.form._FormMixin,dijit._DialogMixin,dijit._CssStateMixin],{
&amp;nbsp;&amp;nbsp; &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;so as you can see alot of the requires are being loaded by why you required.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That makes sense, and what I assumed, but I was surprised for instance to see all of the charting stuff pulled in, when not called for explicitly.&amp;nbsp; Does Dialog pull these in too, or something else?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:04:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202603#M18774</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2021-12-11T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202604#M18775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That makes sense, and what I assumed, but I was surprised for instance to see all of the charting stuff pulled in, when not called for explicitly.&amp;nbsp; Does Dialog pull these in too, or something else?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea why, but those are all pulled in when you &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.layers.osm");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;an must be an embedded component of OpenStreetMap&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:33:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202604#M18775</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-11-16T16:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202605#M18776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That makes sense, and what I assumed, but I was surprised for instance to see all of the charting stuff pulled in, when not called for explicitly.&amp;nbsp; Does Dialog pull these in too, or something else?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did a little more testing.&amp;nbsp; It appears that&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.layers.KMLLayer");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is responsible for pulling in all the chart stuff.&amp;nbsp; In fact, it pulls in about 45 of the roughly 70 modules I wasn't explicitly asking for.&amp;nbsp; I took it out as I'm not currently using KMLLayers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this a bug?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex Bradford&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Direct Relief International&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202605#M18776</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2011-11-16T16:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202606#M18777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I did a little more testing.&amp;nbsp; It appears that&lt;BR /&gt;&lt;BR /&gt;dojo.require("esri.layers.KMLLayer");&lt;BR /&gt;&lt;BR /&gt;is responsible for pulling in all the chart stuff.&amp;nbsp; I too it out as I'm not currently using KMLLayers.&lt;BR /&gt;&lt;BR /&gt;Is this a bug?&lt;BR /&gt;&lt;BR /&gt;Rex Bradford&lt;BR /&gt;Direct Relief International&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;no its not a bug.&amp;nbsp; If it is required for KML to work, it is required.&amp;nbsp; same with OSM.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:42:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202606#M18777</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-11-16T16:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202607#M18778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff is right, it's not a bug. KMLLayer loads the charting modules. Why would you dojo.require it if you're not using it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We had a brief discussion about the deprecation warnings on twitter this when we first added the KMLLayer:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="https://twitter.com/#!/derekswingley/status/89451030831575041"&gt;https://twitter.com/#!/derekswingley/status/89451030831575041&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:47:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202607#M18778</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-16T16:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202608#M18779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;no its not a bug.&amp;nbsp; If it is required for KML to work, it is required.&amp;nbsp; same with OSM.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&amp;nbsp; Are the modules only pulled in by OSM when the layer is used though?&amp;nbsp; If I add dojo.require("esri.layers.osm"); to my code, I don't get all those charting modules.&amp;nbsp; With KML, just requiring seems to be all it takes to pull in the modules.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex Bradford&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Direct Relief International&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:47:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202608#M18779</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2011-11-16T16:47:44Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202609#M18780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks.&amp;nbsp; Are the modules only pulled in by OSM when the layer is used though?&amp;nbsp; If I add dojo.require("esri.layers.osm"); to my code, I don't get all those charting modules.&amp;nbsp; With KML, just requiring seems to be all it takes to pull in the modules.&lt;BR /&gt;&lt;BR /&gt;Rex Bradford&lt;BR /&gt;Direct Relief International&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OSM doesn't require the charting modules, KMLLayer does. When you dojo.require KMLLayer, the charting modules are loaded. Not that it really matters, but the actual dependency is KMLLayer requires esri.dijit.Popup and popup requires the charting modules.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 16:54:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202609#M18780</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-16T16:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202610#M18781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;OSM doesn't require the charting modules, KMLLayer does. When you dojo.require KMLLayer, the charting modules are loaded. Not that it really matters, but the actual dependency is KMLLayer requires esri.dijit.Popup and popup requires the charting modules.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again, this information helps a lot.&amp;nbsp; Still, not to be cheeky, but I think having esri.digit.Popup automatically pull in a couple dozen charting modules is a "performance bug".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rex Bradford&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Direct Relief International&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 18:57:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202610#M18781</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2011-11-16T18:57:08Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202611#M18782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One assumes the Popup dijit requires those modules to function properly, otherwise they wouldn't be brought in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 20:18:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202611#M18782</guid>
      <dc:creator>MarkHoover</dc:creator>
      <dc:date>2011-11-18T20:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202612#M18783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;...I think having esri.digit.Popup automatically pull in a couple dozen charting modules is a "performance bug".&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It's by design. The popup can do &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_agspopup.htm"&gt;many&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_customizepopup.htm"&gt;different&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_popuptemplate.htm"&gt;things&lt;/A&gt;&lt;SPAN&gt;. All the additional functionality requires more resources/modules.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2011 20:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202612#M18783</guid>
      <dc:creator>derekswingley1</dc:creator>
      <dc:date>2011-11-18T20:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202613#M18784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's by design. The popup can do &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_agspopup.htm"&gt;many&lt;/A&gt; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_customizepopup.htm"&gt;different&lt;/A&gt; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_popuptemplate.htm"&gt;things&lt;/A&gt;. All the additional functionality requires more resources/modules.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I get it.&amp;nbsp; Still, is there not a way to pull charts in only when you actually want to use charts in a popup?&amp;nbsp; I guess I don't understand dojo well enough - it seems like a benefit of having a system which can pull in modules on demand would be the ability to avoid this very problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Nov 2011 20:31:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202613#M18784</guid>
      <dc:creator>RexBradford</dc:creator>
      <dc:date>2011-11-22T20:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202614#M18785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I get it.&amp;nbsp; Still, is there not a way to pull charts in only when you actually want to use charts in a popup?&amp;nbsp; I guess I don't understand dojo well enough - it seems like a benefit of having a system which can pull in modules on demand would be the ability to avoid this very problem.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sure, you could write you open popup, and conditionally load the requires based on whether or not a chart is included.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since the esri api preps for charts in the popup, it HAS to preload the module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 14:31:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202614#M18785</guid>
      <dc:creator>JeffPace</dc:creator>
      <dc:date>2011-11-23T14:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why are so many dojo modules pulled in?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202615#M18786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;It's by design. The popup can do &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_agspopup.htm"&gt;many&lt;/A&gt; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_customizepopup.htm"&gt;different&lt;/A&gt; &lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp/intro_popuptemplate.htm"&gt;things&lt;/A&gt;. All the additional functionality requires more resources/modules.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hate to open back up this discussion, but I'd like to discuss it regarding PopupMobile. Since PopupMobile is meant to be used on a mobile accessed site, I would think minimizing size and # of requests would be important. Yeah, I could hack up and host my own PopupMobile to remove unnecessary stuff (like charting in my case), which I'll have to do again if I want to switch to 2.9 when it comes out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My testing with only v2.8compact and claro.css links:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.map") only - 6 requests and 168KB total&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;dojo.require("esri.map") AND dojo.require("esri.dijit.PopupMobile") - 94 requests and 433.5KB total&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Apr 2012 19:59:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/why-are-so-many-dojo-modules-pulled-in/m-p/202615#M18786</guid>
      <dc:creator>MattLane</dc:creator>
      <dc:date>2012-04-09T19:59:41Z</dc:date>
    </item>
  </channel>
</rss>

