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
Deleting large items from knockout.js array causes delay in page responsiveness

We iterate through an array of items that are filtered and deleted from the observable array. If the deletion is large, 1000+, the page is unresponsive for maybe 4 seconds. Is there a way to get around this?

Script

   for (m = 0, gamesLength = unscheduledGames.length; m < gamesLength; m++) {
                viewModel.unscheduled.games.remove(unscheduledGames[m]);
            }

DOM

     <!-- ko foreach: games -->
                        <!-- ko if: $data.Matchup() && $data.Matchup().Selected() -->
                        <div class="item-container draggable-item-container clearfix">
...More Stuff
                        </div>
                        <!-- /ko -->
     <!-- /ko -->
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I think you want to use virtual scrolling for this. I don't really know knockout but I found this fiddle (jsfiddle.net/z4711/gk30zLs2/) with an example of implementation for virtual scroll in knockout (2 000 000 items displayed). Also this article might help you out.

Maybe it can give you some inspiration.

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