ionic-team / ionic-team/ionicons

feat: configure whether or not to lazy load

オープン
#925 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
help wanted type: feature request
主要言語
TypeScript
スター
18.2k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm using an `ion-icon` in a dropdown interface, where a user has to click an element to show the dropdown's content. Because of how ionicons is implemented, the icons inside the dropdown are not loaded instantly because the request is performed when it is visible to the user.

This, of course, is not ideal, as it shows a flicker while the icons are not downloaded. Just like what happens when you set a `background-image` to an element in its `:hover` state.

Is there any way to force the load of invisible icons?

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

The issue names ion-icon and its visibility-triggered lazy loading, but provides no files or tests to start from. Trace the implementation that requests icons when they become visible, then define how configuration should allow invisible icons to load immediately and verify that dropdown icons no longer flicker.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
typescript
領域
frontend
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。