Next.js Discord

Discord Forum

How to fix warning about preloading

Unanswered
Siberian Rubythroat posted this in #help-forum
Open in Discord
Siberian RubythroatOP
Somebody know how to fix that?

12 Replies

Asiatic Lion
Have you fixed that? I receive the same issue
@Siberian Rubythroat
@Asiatic Lion Have you fixed that? I receive the same issue
Siberian RubythroatOP
no
Asiatic Lion
try to add as="image"
@Siberian Rubythroat Somebody know how to fix that?
are you using priority in a <Image /> component?
Asiatic Lion
yes
@Asiatic Lion yes
it will show this warning if you set the priority to true on a image and the image is not visible when the page load
Asiatic Lion
thats right images doesn`t shows
@Asiatic Lion thats right images doesn`t shows
if the image is not visible on screen when the page load, you don't need the set priority to true
Asiatic Lion
images dosn`t shows when its needed at all
@Asiatic Lion images dosn`t shows when its needed at all
could you show the code
@Asiatic Lion images dosn`t shows when its needed at all
also, I think you should create your own thread