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/
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.
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
@AndyGup any ideas? Many thanks
Solved! Go to Solution.
@DavidWiltontry building again with 4.33@rc. The issue should be resolved. 4.33 will be released in the next 30 days or so.
@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.
@DavidWiltontry building again with 4.33@rc. The issue should be resolved. 4.33 will be released in the next 30 days or so.
@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.
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/