<?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 Correct Loading procedures with a splash screen? in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/correct-loading-procedures-with-a-splash-screen/m-p/432019#M39780</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a user is loading up my javascript map they are seeing a bunch of the ugly stuff as it is doing so.&amp;nbsp; All of the pieces that make up my content panes and such. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the content panes to load behind the scenes.&amp;nbsp; I know the first time the user loads this stuff it will be the slowest but I add a bunch of bookmarks for each of our locations(800) and some bookmarks for districts as well for quick zooming.&amp;nbsp; So this takes 30 seconds or so. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how best to do this?&amp;nbsp; Maybe a splash screen at the start and then when everything is finished loading it goes away?&amp;nbsp; How do I do something like that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Nov 2014 19:16:58 GMT</pubDate>
    <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
    <dc:date>2014-11-20T19:16:58Z</dc:date>
    <item>
      <title>Correct Loading procedures with a splash screen?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/correct-loading-procedures-with-a-splash-screen/m-p/432019#M39780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When a user is loading up my javascript map they are seeing a bunch of the ugly stuff as it is doing so.&amp;nbsp; All of the pieces that make up my content panes and such. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I get the content panes to load behind the scenes.&amp;nbsp; I know the first time the user loads this stuff it will be the slowest but I add a bunch of bookmarks for each of our locations(800) and some bookmarks for districts as well for quick zooming.&amp;nbsp; So this takes 30 seconds or so. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how best to do this?&amp;nbsp; Maybe a splash screen at the start and then when everything is finished loading it goes away?&amp;nbsp; How do I do something like that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 19:16:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/correct-loading-procedures-with-a-splash-screen/m-p/432019#M39780</guid>
      <dc:creator>deleted-user-Pi5x1UjkS2PY</dc:creator>
      <dc:date>2014-11-20T19:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Loading procedures with a splash screen?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/correct-loading-procedures-with-a-splash-screen/m-p/432020#M39781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Take a look at this &lt;A _jive_internal="true" href="https://community.esri.com/message/81510#81510"&gt;discussion&lt;/A&gt;, which puts a blank div in front of everything and hides it once the page is ready.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's how I remove it in AMD using the &lt;A href="http://dojotoolkit.org/reference-guide/1.10/dojo/ready.html"&gt;ready&lt;/A&gt; function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14165170738325832 jive_text_macro" jivemacro_uid="_14165170738325832" modifiedtitle="true"&gt;
&lt;P&gt;ready(function () {&lt;/P&gt;
&lt;P&gt;&amp;nbsp; //other stuff going on&lt;/P&gt;
&lt;P&gt;&amp;nbsp; domStyle.set(dom.byId("outerDIV"), "display", "none");&lt;/P&gt;
&lt;P&gt;)};&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 20:55:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/correct-loading-procedures-with-a-splash-screen/m-p/432020#M39781</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2014-11-20T20:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Correct Loading procedures with a splash screen?</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/correct-loading-procedures-with-a-splash-screen/m-p/432021#M39782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here's what I would do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a class on the body of the HTML and call it something like "loading".&lt;/P&gt;&lt;P&gt;2. Put all the stuff you want hidden at runtime in a div and give it a class like "app-content".&lt;/P&gt;&lt;P&gt;3. In CSS, write something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="css" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14165193528334403" jivemacro_uid="_14165193528334403" modifiedtitle="true"&gt;
&lt;P&gt;.app-content{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; display:block;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;.loading .app-content{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; display:none;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. Once the page is ready, remove the loading class from the body of the html.&lt;/P&gt;&lt;P&gt;5. Eat cake&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want a loading spinner you could have another div displayed via css like this:&lt;/P&gt;&lt;PRE __default_attr="css" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14165194449883767" jivemacro_uid="_14165194449883767" modifiedtitle="true"&gt;
&lt;P&gt;.loading-spinner{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; display:none;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;.loading .loading-spinner{&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; display:block;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; position:absolute;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; z-index:2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; left:0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; top:0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; width:100%;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height:100%;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; background: url(myspinner.gif) center center no-repeat;&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2014 21:39:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/correct-loading-procedures-with-a-splash-screen/m-p/432021#M39782</guid>
      <dc:creator>MattDriscoll</dc:creator>
      <dc:date>2014-11-20T21:39:29Z</dc:date>
    </item>
  </channel>
</rss>

