# ?page=n URL 的 CLS 值很高，因此 SEO 效果不佳

**URL:** <https://meta.discourse.org/t/page-n-urls-have-high-cls-hence-bad-seo/249554>\
**Category:** Feature\
**Tags:** seo\
**Created:** [2022年十二月21日 07:08 UTC](https://meta.discourse.org/t/page-n-urls-have-high-cls-hence-bad-seo/249554 "2022-12-21T07:08:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaIng](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/michaing/32/251089_2.png) [@MichaIng](https://meta.discourse.org/u/MichaIng)\
**Post date:** [2022年十二月21日 07:08 UTC](https://meta.discourse.org/t/page-n-urls-have-high-cls-hence-bad-seo/249554/1 "2022-12-21T07:08:17Z")

</div>

搜索引擎会抓取大型主题的带分页的网址，但会遇到很高的累积布局偏移 (CLS)。

在浏览器中打开它们，`?page=2` 最初会正确显示回复 21，但片刻之后它会跳到回复 19 和 21 之间的某个位置。这可能可以省略，以在分页使用时改善 SEO 和用户体验。

---

<div class="post-metadata">

**Author:** ![aest](https://avatars.discourse-cdn.com/v4/letter/a/90ced4/32.png) [@aest](https://meta.discourse.org/u/aest)\
**Post date:** [2023年九月13日 09:20 UTC](https://meta.discourse.org/t/page-n-urls-have-high-cls-hence-bad-seo/249554/3 "2023-09-13T09:20:30Z")

</div>

我们的论坛网站也遇到了此问题。Google Search Console 报告这些网址的 CLS 值很高。☹ \n\n这将在未来的更新中得到解决，还是有解决方法？[@team](https://meta.discourse.org/groups/team)

---

<div class="post-metadata">

**Author:** ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)\
**Post date:** [2023年十二月26日 06:36 UTC](https://meta.discourse.org/t/page-n-urls-have-high-cls-hence-bad-seo/249554/10 "2023-12-26T06:36:22Z")

</div>

修复已完成：[FIX: CLS jumpiness in post-stream when ?page=N by nattsw · Pull Request #25034 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/25034)

感谢您的耐心等待！这个问题非常难以复现。我将设置一个月的计时器，然后我们可以重新审视以确认这是否解决了问题——感觉应该可以。

编辑：  
我刚刚确认修复已在 meta 上。一个示例主题是 [https://meta.discourse.org/t/111143?page=3](https://meta.discourse.org/t/111143?page=3)。以前，当页面确定滚动位置时会发生跳转。

修复后，滚动位置计算正确，我们将不会看到跳转。

---

<div class="post-metadata">

**Author:** ![isaac](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/isaac/32/235758_2.png) [@isaac](https://meta.discourse.org/u/isaac)\
**Post date:** [2024年一月8日 14:00 UTC](https://meta.discourse.org/t/page-n-urls-have-high-cls-hence-bad-seo/249554/11 "2024-01-08T14:00:25Z")

</div>

该主题在 9 天后自动关闭。不再允许回复。
