DEV Community

Discussion on: Web Performance: Optimizing First Input Delay

Collapse
 
beingdev profile image
Prem Kumar • Edited

This is a good article covering all posible points to improve web performance.
You can also preload images that is above the fold, which will eventually reduce the time for FCP (First Contentful Paint)

General, way of preloading image

Using Nextjs
src="/path/to/image.png"
width="800"
height="600"
priority={true}
/>

The priority prop indicates the browser to preload the image.

Collapse
 
gokulpg profile image
Gokul P Gangadharan

Thanks prem. Can you elaborate a bit on how you would that? Will definitely help

Collapse
 
codegino profile image
Carlo Gino Catapang

Good read.

Not sure if these are what ur looking for.

dev.to/codegino/dynamic-image-plac...
dev.to/codegino/nextjs-features-to...

Thread Thread
 
gokulpg profile image
Gokul P Gangadharan

Thanks Carlo for sharing your blogs. Very Informative

Collapse
 
beingdev profile image
Prem Kumar

Comment updated

Thread Thread
 
gokulpg profile image
Gokul P Gangadharan

Thanks prem. Got it. Will look into that