Submitted over 4 years agoA solution to the REST Countries API with color theme switcher challenge
Built using Svelte-Kit and thusly using Svelte as frontend framework
@poppa

Solution retrospective
The start page contains loads of images (svg) since all countries are listed by default. Has anyone created a solution where countries below the fold are lazily rendered?
I think the performance is acceptable (barely) as it is, but if I we're to optimize something it would be to not render invisible "country elements" on the start page.
And this was my first time using Svelte, so if anyone has any comments on the code regarding that you are more than welcome to slash me :)
Code
Loading...
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Pontus Östlund's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord