Submitted over 2 years ago
Mobile first approach | Product Preview Card Component | Floats
@CornflakesPlus
Design comparison
SolutionDesign
Solution retrospective
Hey There! Solution for Product Preview Card Component. CRITICISM NEEDED.
There are two images provided in this project, a mobile image, and a desktop image. I've used CSS's Display property to hide one image depending on the view of the screen, a normal responsive effect. In the index.html I've added both the <img> tags. The problem with this approach is that the loading time will be compromised. As the browser will load both the images. My question, is there a better approach to this problem?
Community feedback
Please log in to post a comment
Log in with GitHubJoin 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