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

95
Visualizações
Problem on Frozen Spinner on Safari Browser

We need to show a spinner when clicking a button. Our theme (the7) has some classes that show a beautiful spinner.

So, at the beginning of the site, we have set this :

<style type="text/css">.load-wrap{visibility:hidden;opacity:0;}</style>

and onclick button event, we have set this :

onclick = "var x = document.getElementsByClassName('load-wrap');
var i;
for (i = 0; i < x.length; i++){
  x[i].style.opacity='0.9';
  x[i].style.visibility='visible';
  x[i].style.display='flex';
}
if(document.getElementById('load')!== null){
  document.getElementById('load').style.visibility='visible';
  document.getElementById('load').style.display='block';
  document.getElementById('load').style.opacity='0.98';
}
document.form.submit();"

It works perfectly on Chrome and Firefox, but on Safari the spinner gets freeze. I've read that it is because after submitting a form, Safari pauses the spinner animation.

Any help with this behavior on Safari? How could we solve it?

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