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

113
Vistas
do I need to remove previously loaded videos to protect page performances?

On my page there are videos - and only videos
Because of performance issue - only a certain number of videos are loaded on page loading
the rest of them are loaded dynamically - let's say - like this:

$(window).scroll(function() {
    if($(window).scrollTop() == $(document).height() - $(window).height()) {
           // ajax call get data from server and append to the div
    }
});

but if I scroll enough - the page will also have too many videos - for example 1000 videos - isn't it ?

So the question is - do I need some code to remove the previously loaded videos which are not more in the viewport and load them again by scrolling up and down ?

it seems that executing that code for constantly load/remove videos - will also be a big burden for the page performances

any advice ?

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