Pesquisas recentes
Sem pesquisas recentes

Martijn Schoenmaker
Entrou em 28 de mai. de 2021
·
Última atividade em 27 de out. de 2021
Seguindo
0
Seguidores
0
Atividade total
2
Votos
0
Assinatura
1
VISÃO GERAL DA ATIVIDADE
MEDALHAS
ARTIGOS
PUBLICAÇÕES
COMENTÁRIOS NA COMUNIDADE
COMENTÁRIOS EM ARTIGOS
VISÃO GERAL DA ATIVIDADE
Atividade mais recente por Martijn Schoenmaker
Martijn Schoenmaker comentou,
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.
Exibir comentário · Publicado 29 de nov. de 2017 · Martijn Schoenmaker
0
Seguidores
0
Votos
0
Comentários