How would you go about optimizing images? Right now I'm just fetching each link from S3 and then map through the links array and use that as src (example: https://jibberish.cloudfront.com/${link}) (i'm using next/image but that's slow when loading, like really slow)
I'm begginer/intermediate so try and explain thoroughly.