Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

124
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!