Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

174
Vistas
NO_FCP Error on PageSpeed Insights (Lighthouse) with React Website that shows Loading Screen while fetching data

I have built a React website that initially loads data from the server. This data is needed for rendering the website. During loading the data the website shows the following loading screen with a rotating circle.

Loading screen

When I test the website with PageSpeed Insights I get the NO_FCP Error. When I add the text "Loading" below the rotating loading circle, then the Error does not appear. BUT: PageSpeed dosen't wait until the data is fetched and the actual content is rendered. I guess it assumes that the loading screen is the actual page content. It validates the loading screen only. On the rendering pictures on the Page Speed Insights timeline one can see that there is only the loading screen.

This is a snippet of App.js:

  useEffect(() => {
    apiService.post('/api/init', {}).then((res) => {
      ...
      ...
      ...
      setInitialDataLoaded(true)
    });
  }, []);
  if (initialDataLoaded) {
    return (
      <Router>
        ...
      </Router>
    );
  }
  return (
    <div className="initial-app-load-container center"><Spinner /></div>
  );

I'm afraid search engine bots will get the same error and not index the page. What can I do to make Lighthouse wait until the actual content of the page is rendered? I've already read other threads about this that recommend testing it via the developer tools and in incogito mode, but that doesn't solve the actual problem.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda