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

118
Views
Rendering multiple videos in React

I have a component which runs (automatically) 4 muted videos simultaneously, and beside of it I have webgl running on the background parent component. And problem is that, when I open this 4 video component, mobile device cannot handle downloading and running 4 videos at the same time which leads to page's complete freeze.

And I thought what if render each video element one by one, with delay, so they will not render at once? But couldn't find any approaches to do that in React, need your help.

Code example:

content: [

            {
              videoSource: `${process.env.PUBLIC_URL}/assets/video-1.mp4`,
            },
            {
              videoSource: `${process.env.PUBLIC_URL}/assets/video-2.mp4`,
            },
            {
              videoSource: `${process.env.PUBLIC_URL}/assets/video-3.mp4`,
            },
            {
              videoSource: `${process.env.PUBLIC_URL}/assets/video-4.mp4`,
          ],

return (
  ...
    {content.map((contentItem) => <video ... />)}
  ...
)
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

For the video tag you can, there is a property called preload that can be disabled with this command:

preload="none"

With this case your mapping can easily be like this:

{content.map((contentItem) => <video preload="none" controls ... />)
about 4 years ago · Juan Pablo Isaza Report
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!