We are seeing ~25% performance degradation for JSAPI map applications that use a legend widget over the same map application that does not use a legend widget> This is observable when there are many layers and with only a few visible.
Has anybody else seen this behavior?
Context: ArcGIS Online hosted feature services and webmap secured via OAuth2. The webmap is consumed by the ArcGIS JavaScript application. The webmap consists of a basemap and about 250 layers, only 5 of which are visible at load.
I wonder if the legend widget is rendering symbology for all layers at load - and this is what is affecting performance. Nonetheless, our customers are noticing it.