ionic-team / ionic-team/ionicons

feat: configure whether or not to lazy load

未关闭
#925 1 条评论 0 个 reaction 已指派 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?

贡献指南

打开贡献指南

调研方向

该 issue 提到了 ion-icon 及其由可见性触发的 lazy loading,但没有提供可供开始的文件或测试。跟踪在图标变为可见时请求图标的实现,然后确定配置应如何允许不可见的图标立即加载,并验证 dropdown 图标不再闪烁。

由索引模型根据 Issue 内容生成。

评估

技术栈
typescript
领域
frontend
Issue 类型
功能
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。