?page=n URLs have high CLS hence bad SEO

Search engines crawl the paginated URLs on large topics, but face a high Cumulative Layout Shift (CLS) with them.

Opening them in browser, ?page=2 shows reply 21 correctly aligned at first, but after a little moment it jumps up to somewhere between replies 19 and 21. Probably this can be omitted to improve SEO and user experience when pagination is used.

3 Likes

We’re also experiencing this issue in our forum site. Google Search Console is reporting these URLs with a high CLS. :frowning:

Will this be addressed on future updates or is there a workaround for this? @team

1 Like

Fix is here: FIX: CLS jumpiness in post-stream when ?page=N by nattsw · Pull Request #25034 · discourse/discourse · GitHub

Thanks for your patience yall! This was pretty hard to reproduce. I’ll set a timer for a month and we can revisit to confirm if this fixes the issue – feeels like it should.

EDIT:

I just confirmed the fix is on meta. An example topic would be https://meta.discourse.org/t/111143?page=3. Previously, it would jump when the page is determining the scroll position.

With the fix, the scroll position is calculated correctly and we won’t see the jump.

5 Likes

This topic was automatically closed after 9 days. New replies are no longer allowed.