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

212
Visualizações
Safari page loading scrolls to near bottom of page

On Safari 13, when I load a wordpress page, it scrolls to an Google Map Iframe near the bottom of the page. I tried fixing it with JS:

$(document).ready( () => {

    window.scrollTo(0,0);

})

to no effect. This doesn't happen on Chrome Mac or PC. Any suggestions about how to fix this or work around? Thank you.

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Ok we figured it out. Apparently, the Google map at the bottom of the page has a marker for a location. When the marker loads, Safari focuses on that marker causing the page to skip to the map. This does not occur with Chrome. We ended up only running the JavaScript function creating the marker for non-Safari browsers using a regular expression to select for non-Safari browsers and this fixed the page jump.

about 4 years ago · Juan Pablo Isaza Relatório
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