最近の検索


最近の検索はありません

Martijn Schoenmaker's Avatar

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

コメント