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

80
Vistas
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 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