Esri / calcite-design-system

A monorepo containing the packages for Esri's Calcite Design System
https://developers.arcgis.com/calcite-design-system/
Other
290 stars 76 forks source link

Add option to render icons (or other assets/components) synchronously #8261

Open hcampos-professional opened 11 months ago

hcampos-professional commented 11 months ago

Check existing issues

Description

When displaying an icon in a <calcite-icon>, the actual icon is loaded asynchronously. This is fine if the page or component containing the icon is loading for the first time. However, in applications which show/hide elements dynamically, this poses some problems:

Here is a CodeSandbox which exemplifies the issue: Sandbox

Acceptance Criteria

Relevant Info

No response

Which Component

<calcite-icon> and any other component using icons.

Example Use Case

Within our applications we often have panels, popups, tooltips (etc) containing icons and which are rendered dynamically. Having icons flicker or pop into the app after these components are rendered provides a subpar user experience.

Priority impact

p4 - not time sensitive

Calcite package

Esri team

ArcGIS Maps SDK for JavaScript

janett-baresel commented 11 months ago

This also is a problem in Scene Viewer.