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

181
Visualizações
Does nextjs prerender only for the first page load/refresh

I'm learning nextjs and read in a few places that nextjs only prerenders for the first page(How is server-side rendering compatible with single-page applications?)

But when I use the Link tag and navigate to another page, and view page source, I see it has the html elements that are built using data from getServerSideProps, but in network tab there's no request for html file, only a get request that receives json data for the page. So if it prerenders only for the first page / on refresh, how does the view page source have the html elements created using react?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

NextJS does pre-render to accelerate loading HTML from the server and so the SEO score, but when you are already on the website you do not need to load the whole new page HTML again, it will only un React to change components displayed.

You can see in the network tab on your browser this happening, the first page is fully loaded while the others load a .json file containing informations on ho to change the current page.

Also when you get to see the page source code you make a new request so you get the HTML for the new URL.

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