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

186
Visualizações
Chrome Network tab | Time continue increasing after status is defined

I am using the network tab on Google Chrome to see how a script is being fetched. I noticed that even after the status is set, the time continues loading. Why is that? Is this expected?

For example, when the status change to 200 the timer is 6.06s:

First status load

After some seconds, the time continues running also if the status is 200:

After waiting more seconds

This is my code:

const controller = new AbortController();
const timeoutId = setTimeout(() => controller.abort(), 10000);
fetch(`${host}/asset-manifest.json`, { signal: controller.signal })
      .then((res) => res.json())
      .then((manifest) => {
        const script = document.createElement("script");
        script.id = scriptId;
        script.crossOrigin = "";
        script.async = true;
        script.src =
          (process.env.REACT_APP_ENV === "dev" ? host : "") +
          manifest.files["main.js"];
        script.onload = renderMicroFrontend;
        document.head.appendChild(script); // THIS IS THE LINE THAT LOAD THE SCRIPT
        if (manifest.files["main.css"]) {
          const link = document.createElement("link");
          link.href =
            (process.env.REACT_APP_ENV === "dev" ? host : "") +
            manifest.files["main.css"];
          link.rel = "stylesheet";
          document.head.appendChild(link);
        }
        clearTimeout(timeoutId);
      })
      .catch((exc) => {
        setLoading(false);
        exc instanceof DOMException
          ? history.push("/timeout")
          : history.push("/notfound");
      });
about 4 years ago · Juan Pablo Isaza
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