Next.js Discord

Discord Forum

Image load time from disk-cache

Unanswered
AM posted this in #help-forum
Open in Discord
AMOP
Hello, I have a question regarding the <Image /> component in "next": "13.4.19". I can see the image being cached in the network tab:

URL: https://res.cloudinary.com/dwc808l7t/image/upload/w_1080,q_auto/v1690284969/game-launcher/dcg-share-logo_vfqqwt.png

Status: 200

Source: Disk Cache


However, it still takes some time to load, around 3.18ms. My question is, is it possible for the image to load instantly when coming from the Disk Cache? If not, I assume suggested placeholders are the option?

5 Replies

i guess it depends on types of web browser user uses such as Chrome, Safari and so on, and user devices like mac m2, win, iPhone, Android and so on.
but 3ms is blazing fast, adding js logic for placeholders would make things worse.
AMOP
and do you have any idea why when i switch between different images they are not always loaded from the cache infact most of the times Network requests are executed, is this related with the Image somehow do you have idea
did u change the subject? if so, create a new thread plz
AMOP
ok sure sorry, thank you so much!