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

158
Visualizações
How to make a video render better on the browser

I have a question. I have a website and I have a video playing in loop at the hero section. When I scroll down I change the video with an image using JavaScript to make the page run smoother but when the video is playing the page slows down. I saw a lot of websites that render videos on loop and doesn't affect the performance of the site. Is there any solution to this? Or any indication why the performance drops so much in my site? I'm using webm and the video is at 1080p. Here's my code btw:

<div class="container1" id="particles">
    <video class="pinkV" loop autoplay muted>
        <source src="images/Temple Pink (Loop).mp4" type="video/mp4">
    </video>
    <div class="suELogo">
        <svg data-src="images/SU_E2_Logo.svg"></svg>
    </div>
    <a href="#episodes">
        <i class="fas fa-chevron-down"></i>
    </a>
</div>
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I solved the problem, I was encoding my files with webp and with an amd codec so the files were the problem. I'm using H264 (10-bits) now and works fantastic.

about 4 years ago · Juan Pablo Isaza Relatório
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