<?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: Maps SDK 4.33 viewOnReady is Not a Function in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1660254#M87759</link>
    <description>&lt;P&gt;I'm using the CDN.&amp;nbsp; I think my scripts were actually above the components in the head, so I moved them down to the body like you suggested.&amp;nbsp; After doing some testing, I will comment back with whether this fixed my problem or not.&amp;nbsp; Thanks for the tip!&lt;/P&gt;</description>
    <pubDate>Thu, 23 Oct 2025 21:56:20 GMT</pubDate>
    <dc:creator>JasonBartling1</dc:creator>
    <dc:date>2025-10-23T21:56:20Z</dc:date>
    <item>
      <title>Maps SDK 4.33 viewOnReady is Not a Function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1660159#M87752</link>
      <description>&lt;P&gt;I am trying to make sure the map view is ready when using components before accessing it to zoom to a location, etc.&amp;nbsp; The official way I found to do this was to use the mapView.viewOnReady method as seen in the release notes for version 4.33 here&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/4.33/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/4.33/&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;However, it seems like 1/10 of the time I load my web application I get the error that viewOnReady is not a function.&amp;nbsp; Is there a better official/more robust way to make sure the map view element is loaded before trying to call this viewOnReady method than the below?&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;const viewElement = document.getElementById("map-component");
await viewElement.viewOnReady();&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 19:41:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1660159#M87752</guid>
      <dc:creator>JasonBartling1</dc:creator>
      <dc:date>2025-10-23T19:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Maps SDK 4.33 viewOnReady is Not a Function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1660244#M87758</link>
      <description>&lt;P&gt;Is this a CDN app or npm? It's possible maybe in a CDN app that a network issue might add just enough of a delay for map-components code that defines that method to not load in time, but I hadn't seen that before.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having components script in the head and user script as last element of the body makes sure this doesn't happen.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 21:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1660244#M87758</guid>
      <dc:creator>ReneRubalcava</dc:creator>
      <dc:date>2025-10-23T21:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Maps SDK 4.33 viewOnReady is Not a Function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1660254#M87759</link>
      <description>&lt;P&gt;I'm using the CDN.&amp;nbsp; I think my scripts were actually above the components in the head, so I moved them down to the body like you suggested.&amp;nbsp; After doing some testing, I will comment back with whether this fixed my problem or not.&amp;nbsp; Thanks for the tip!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Oct 2025 21:56:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1660254#M87759</guid>
      <dc:creator>JasonBartling1</dc:creator>
      <dc:date>2025-10-23T21:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Maps SDK 4.33 viewOnReady is Not a Function</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1661116#M87811</link>
      <description>&lt;P&gt;I don't appear to be getting the error any more.&amp;nbsp; Moving my scripts seemed to be the solution.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Oct 2025 21:11:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/maps-sdk-4-33-viewonready-is-not-a-function/m-p/1661116#M87811</guid>
      <dc:creator>JasonBartling1</dc:creator>
      <dc:date>2025-10-27T21:11:14Z</dc:date>
    </item>
  </channel>
</rss>

