Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

143
Visualizações
Nextjs Image component loading slow on map

When i use map the images render slow on localhost. However, when I dont use map it loads quickly.

I used a variety of props from Image component but none seem to fix this issue.

However, after all images rendered and I hit the refresh button they load fast.

This is quite confusing. Is there any way to load images quickly upon first page visit?


import React from 'react';
import Image from 'next/image';
import styles from './Peoples.module.scss';
export const Peoples = () => (
  <>
    {[...Array(10)].map((x, i) => (
      <div className={styles.team_img_container} key={i}>
        <Image
          style={{ height: 100, width: 100 }}
          src={`/people/${i + 1}.webp`}
          alt="Picture of the author"
          width={100}
          height={100}
          // unoptimized={true}
          // loading="eager"
          priority={true}
          // quality={70}
        />
      </div>
    ))}
  </>
);

export default Peoples;
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

So I deployed this and left it as is It seems like during development mode all png or jpg will be converted to webp hence the slow reload. So deploy it and check out its performance on Vercel just dont use webp cause next will convert that 2 .

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda