mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-11 19:49:18 +08:00
perf(icon): disable icon lazy loading when it's not needed
This commit is contained in:
@@ -225,7 +225,7 @@ export class Tabbar {
|
||||
if (this.scrollable) {
|
||||
return [
|
||||
<ion-button onClick={() => this.scrollByTab('left')} fill="clear" class={{ inactive: !this.canScrollLeft }}>
|
||||
<ion-icon name="arrow-dropleft"/>
|
||||
<ion-icon name="arrow-dropleft" lazy={false}/>
|
||||
</ion-button>,
|
||||
|
||||
<ion-scroll forceOverscroll={false} ref={(scrollEl) => this.scrollEl = scrollEl as HTMLIonScrollElement}>
|
||||
@@ -234,7 +234,7 @@ export class Tabbar {
|
||||
</ion-scroll>,
|
||||
|
||||
<ion-button onClick={() => this.scrollByTab('right')} fill="clear" class={{ inactive: !this.canScrollRight }}>
|
||||
<ion-icon name="arrow-dropright"/>
|
||||
<ion-icon name="arrow-dropright" lazy={false}/>
|
||||
</ion-button>
|
||||
];
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user