I made this post before but it got removed due to the spam filter.
I ported my site to next.js with a prismatic headless backend. The files get statically generated but still, the images have a very long TTFB (4.2 sec). Last time I posted an attachment of the request the entire post got flagged as spam so I guess you just have to take my word for it.
The instance is " serene-colden-83caab" and there is no DNS so it’s all on the platform.
Could this have anything to do with the decoding="async" you have attached to each image? I’m not familiar with that attribute, and it’s not part of the HTML5 standard.
The images are being loaded by the Image component from Next.Js (next/image | Next.js). I will try and update the images to a native img tag, but I guess all Next.js project on Netlify would suffer the same issues.
how large are these images, @vanbrabantf ? that is important to consider - our system is optimized to serve smaller assets as fast as possible, and you may not get the same results for larger files.
Hey Luke. Thanks for looking at it. That function is the default way that Next.js renders images, so there isn’t a lot to debug here.
I just ported the site over to Vercel and everything works perfect there so I’m going to use Vercel over Netlify. Netflify was my first choice due to the great ambassadors they have but in the end I just want a working site.
Hey there, @jamie-performant ! Great question. Check out this thread for some helpful links related to next.js on Netlify and handling image-heavy sites.