mirror of
https://github.com/lipis/flag-icons.git
synced 2026-04-26 09:25:50 +03:00
[GH-ISSUE #747] How to optimize initial loading? #386
Labels
No labels
3rd-party
3rd-party
bug
code
documentation
enhancement
fixed-in-master
flag-request
help needed
missing-flag
missing-flag
pull-request
wrong-flag
wrong-flag
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flag-icons#386
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @z31fbras on GitHub (Aug 31, 2020).
Original GitHub issue: https://github.com/lipis/flag-icons/issues/747
Context
I use this library in my Angular 8+ app.
I ran my application with a throttled connection: fast and slow 3G in the network tab from Google Chrome developer tools.
Implementation
Flags are added this way into my project:
Angular.json
Issue
Initial loading is long when throttling the connection.
Due to the important number of files, the initial loading of my app is long.
The problem is, my app can be used only if all the flags have been downloaded.
Is there a way to optimize the loading of these files?
Having a single download for all these files would be perfect actually.
Additional information
I noticed that files seem to be downloaded twice.
For example, there is a download for aw.29aeb3f91f4da71e6766.svg and aw.f159ec168ea083c41505.svg
Is it a normal behaviour?
Thanks for your help!
@KingDarBoja commented on GitHub (Sep 3, 2020):
The duplicated flags maybe be caused by how Angular is dealing with both
1x1and4x3source files on local serve. See #706@lipis commented on GitHub (Nov 6, 2020):
Not sure