Hi everyone,
I’m working on a website that displays a large number of country flag images (for example: SVG/PNG flags from different countries). The site structure is similar to a directory where users can browse and view flags.
My challenge is that as the number of images grows, the page load time is getting slower, especially on mobile devices.
Here are some details:
The site loads many flag images on a single page
Currently using standard <img> tags
Images are optimized but still affect performance
Hosting is on a shared server
What I want to improve:
Faster page load speed
Better image loading strategy
Good user experience on low-speed connections
I’ve looked into lazy loading and CDN options, but I’m not sure what would be the best approach in this case.
My questions:
Should I use lazy loading or pagination for such image-heavy content?
Is a CDN necessary for this type of site?
Are there better formats or techniques for serving flag images efficiently?
Any guidance or best practices would be really helpful.
Thanks in advance!