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

122
Vistas
Avoid downloading video data twice when created video with js and then added to the document

I'm working on a Vue app but the issue is more vanilla

when I create video element dynamically with

document.createElement('video')

and assign the src,

I can see it download the video on the network tools even if it's not added on the page, which is the behaviour I want .

However, when I add it to the page with document.addChild, it loads the video again from the src, how do I avoid this? It should use the existing video data.

The reason that I wanted to do this is to cache lots of video data while the user is in a different part of the journey.

Note, I am seeing this behaviour in Brave Browser but not Firefox or safari.

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