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

232
Vistas
window.scrollTo() does not work for Safari. How do I work around this?

I'm using vue to make this website and I tried executing window.scrollTo() on the beforeCreate() and mounted() lifecycles and I still can't get it to scroll to the top on safari. It works well in chrome and Firefox but it doesn't in safari. I've seen this issue in a couple of websites but there are some who seem to got it right and scrolls to the top whenever the page reloads.

Does anyone have any recommendations? (I've tried setting the body overflow to scroll, I've tried using onpageshow listener to prevent safari from loading from cache. Nothing worked )

Any input would be greatly appreciated!

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