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

129
Vistas
Vue Detect when a file start download in browser

I have an Mp4 file URL that I play in videojs player, in addition, I'm also giving the user the option to download the MP4 file by clicking on a download button inside the player, in order to do so I'm doing something like this:

  window.location.replace(this.src);

where this.src is the link to the MP4 file coming from AWS S3.

But when the user clicks the download button it could take several seconds until the download actually begins and I want to show a loader in order to prevent the user from clicking several times. How can I detect when the download is actually starting (so know when to stop showing the loader)? Is there any Chrome API to do so?

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