ionic-team/ionicons

feat: configure whether or not to lazy load

开放

#925 创建于 2021年1月14日

 (1 条评论) (0 个反应) (0 位负责人)TypeScript (2,083 个派生)batch import
help wantedtype: feature request

仓库指标

星标
 (17,256 个星标)
PR 合并指标
 (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?

贡献者指南