Select to view content in your preferred language

ArcGIS Map Components build/performance issues

142
3
Jump to solution
Monday
DavidWilton
Frequent Contributor

The esri arcgis-map web component when built appears to bundle in and load transformations and geodesic length. These are being bundled and loaded despite not being used. When using CDN they do not get loaded.

I've created the most basic web app with three versions (CDN, Vite with web map and vite with arcgis-map)

https://github.com/davewilton/esri_tests/tree/master/

DavidWilton_1-1748244286391.png

DavidWilton_2-1748244317530.png

You can see above that arc-gismap is having a huge impact on the performance of the page. They are loaded as well as bundled, but like I say this is unique to bundling and arcgis-map.

The lighthouse score  is 35 vs 52 just to use arc-gismap when bundled because it loads these two unnecessary files.

DavidWilton_3-1748244419143.png

DavidWilton_4-1748244433860.png

 

Also note when using esri it causes lighthouse to hang right at the end (this is limited to including maps). If you reload the page at this point it will give you results

DavidWilton_5-1748244720517.png

@AndyGup any ideas? Many thanks 

 

 

 

0 Kudos
1 Solution

Accepted Solutions
AndyGup
Esri Regular Contributor

@DavidWiltontry building again with 4.33@rc. The issue should be resolved. 4.33 will be released in the next 30 days or so.

View solution in original post

0 Kudos
3 Replies
AndyGup
Esri Regular Contributor

@DavidWilton  interesting, I'm not sure why those two modules are being loaded. I'll refer this issue to the web components devs and we'll take a look. Thanks for reporting.

0 Kudos
AndyGup
Esri Regular Contributor

@DavidWiltontry building again with 4.33@rc. The issue should be resolved. 4.33 will be released in the next 30 days or so.

0 Kudos
DavidWilton
Frequent Contributor

@AndyGup much better! thanks so much for checking. I can confirm that web components and esri core are much more similar in build size and performance now.
DavidWilton_0-1748402576734.png

If you hear anything about esri and lighthouse freeze let me know. Seems to be an issue with Esri and the latest chromium from edge and chrome (checked on a mac too). Happens with the sample pages too e.g.

https://developers.arcgis.com/javascript/latest/sample-code/basemap-gallery/live/

 

0 Kudos