[GH-ISSUE #1081] Flag svg slow loading #508

Closed
opened 2026-03-03 14:38:54 +03:00 by kerem · 1 comment
Owner

Originally created by @m4n50n on GitHub (Jan 26, 2023).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/1081

Hi,

sometimes, the flags svg not loading inmediatly:

On load it looks like this (gb is missing):
image

After a second:
image

My component code:

<li *ngFor="let language of availableLanguages | keyvalue">
  <span [ngClass]="'fi fi-' + language.value.icon"></span>
</li>

Any idea about this problem?

Thanks in advance!

Originally created by @m4n50n on GitHub (Jan 26, 2023). Original GitHub issue: https://github.com/lipis/flag-icons/issues/1081 Hi, sometimes, the flags svg not loading inmediatly: On load it looks like this (gb is missing): ![image](https://user-images.githubusercontent.com/92524023/214810170-321aef0c-d5fa-4ea6-b960-82d6d2545dd1.png) After a second: ![image](https://user-images.githubusercontent.com/92524023/214810407-c466f277-e25a-4551-b5f4-4769527ee0ee.png) My component code: ``` <li *ngFor="let language of availableLanguages | keyvalue"> <span [ngClass]="'fi fi-' + language.value.icon"></span> </li> ``` Any idea about this problem? Thanks in advance!
kerem closed this issue 2026-03-03 14:38:54 +03:00
Author
Owner

@lrljoe commented on GitHub (Mar 24, 2023):

Ensure you exclude the flags from any version control as that'll mess with any caching!

<!-- gh-comment-id:1483304293 --> @lrljoe commented on GitHub (Mar 24, 2023): Ensure you exclude the flags from any version control as that'll mess with any caching!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flag-icons#508
No description provided.