Make an Image component with optimizations for image loading
See original GitHub issueCurrent The leaderboard page loads github user avatars of size 460px, whereas the size of the div is 178px (desktop) and 54px (others). It is not needed to load such a big sized image for a small div.
May cause performance issues if there are more contributors, or the client does not have good device network.
Desktop:
Mobile:
Suggestion
Make an Image component and possibly optimise image loading using srcset
, loading the appropriate size based on device widths.
Acc no: c54c04774efaae20746fd3f29cdd619fea512e119bc1082b863572b2e8844104
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Basic Features: Image Optimization - Next.js
The default loader for Next.js applications uses the built-in Image Optimization API, which optimizes images from anywhere on the web, and then serves...
Read more >Nextjs image optimization with examples - Refine Dev
NextJS introduced a solution for delivering performant images on the web in v.10. It features a new Image component and built-in automatic image...
Read more >Next.js automatic image optimization with next/image
Learn about automatic image optimization and how it can benefit developers with the native, game-changing, and powerful next/image API.
Read more >Next.js image optimization techniques | Uploadcare Blog
Next.js Image component enables lazy loading by default, meaning that the app only loads and displays the images which are currently on the...
Read more >Building an effective Image Component - Chrome Developers
Images are a common source of performance bottlenecks for web applications and a key focus area for optimization. This article explains how ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@thesanjeevsharma @Hristijan95 I like this suggestion. Maybe we can have an Image component that abstracts all this and is reusable ?
I agree, would be nice to have that.