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

86
Visualizações
Autoplay sound is getting stopped with print window

Autoplay sound is getting stopped as soon as I'm opening a print window through window.print() and coming back after clicking on cancel. This issue is happening only in Chrome browser whereas in Firefox it is working fine. I don't see any error/interrupt as well when I click on print window.

Can someone please explain why this is happening in Chrome and what is the workaround?


I've found the reasoning behind this behaviour. window.print() is a blocking function which blocks all the threads in Chrome but this is not the case with Firefox.

Reproduced this issue here: https://jsfiddle.net/Jatin46/yf0jt8ch/5/

We can see from the above example that time is getting stopped in Chrome but it is running in Firefox since Chrome blocks everything.

Now, I want to know if there is any workaround possible to unblock the background thread?

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