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

81
Visualizações
React page reload causes script tags in public folder not to work

I am trying to convert a template website to React, and it comes with some js plugins. I try running it locally, placed the assets in the public folder and it works, but when i refresh the page, some of the plugins dont work.

For example, from inspection, it uses bootstrap, jquery, magnificent popup and some custom scripts that use jQuery. For the popup, when i click it the first page load, it works. When i refresh the page, it doesn't work unless i click on "Empty cache and hard refresh" on my browser.

I have tried adding both async and defer attributes on the plugins, used react-helmet

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