I'm trying to preload or prefetch remote images in my photo gallery but it seems that new Image() conflicts with the nextjs's next/image.
This code works fine before(using CRA) I migrated to nextjs.
const img = new Image();
img.src = photoToPreload.largeUrl;
Any suggestion is very much appreciated.