Búsquedas recientes
No hay búsquedas recientes

Martijn Schoenmaker
Incorporación 28 may 2021
·
Última actividad 27 oct 2021
Seguimientos
0
Seguidores
0
Actividad total
2
Votos
0
Suscripción
1
RESUMEN DE LA ACTIVIDAD
INSIGNIAS
ARTÍCULOS
PUBLICACIONES
COMENTARIOS DE LA COMUNIDAD
COMENTARIOS DE ARTÍCULOS
RESUMEN DE LA ACTIVIDAD
Última actividad de Martijn Schoenmaker
Martijn Schoenmaker hizo un comentario,
I'm not sure if it's already mentioned, but the downside of using this technique is the DOM being altered after the first draw. Another way to tackle this is setting display: none on the nth element using css. So eg:
.a.article-list-link:nth-child(n+5) {
display: none;
}
This piece of code adds "display: none;" to the 5th element and up. That way the DOM is rendered correctly at once!
EDIT: I just noticed that the comment above me already provided this answer. I will keep this one just so that people will notice.
Ver comentario · Publicado 29 nov 2017 · Martijn Schoenmaker
0
Seguidores
0
Votos
0
Comentarios