최근 검색
최근 검색 없음

Martijn Schoenmaker
가입한 날짜: 2021년 5월 28일
·
마지막 활동: 2021년 10월 27일
팔로잉
0
팔로워
0
총 활동 수
2
투표 수
0
가입 플랜
1
활동 개요
배지
문서
게시물
커뮤니티 댓글
문서 댓글
활동 개요
님의 최근 활동 Martijn Schoenmaker
Martijn Schoenmaker님이 에 댓글을 입력함
커뮤니티 댓글 Discussion - Tips and best practices from the community
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.
댓글 보기 · 2017년 11월 29일에 게시됨 · Martijn Schoenmaker
0
팔로워
0
투표 수
0
댓글