Recent searches
No recent searches

Martijn Schoenmaker
Joined May 28, 2021
·
Last activity Oct 27, 2021
Following
0
Followers
0
Total activity
2
Votes
0
Subscription
1
ACTIVITY OVERVIEW
BADGES
ARTICLES
POSTS
COMMUNITY COMMENTS
ARTICLE COMMENTS
ACTIVITY OVERVIEW
Latest activity by Martijn Schoenmaker
Martijn Schoenmaker commented,
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.
View comment · Posted Nov 29, 2017 · Martijn Schoenmaker
0
Followers
0
Votes
0
Comments