需要在主页禁用无限滚动

Is there any way I can stop infinite scroll in home page? Thanks.

Probably not.

It will probably help if you take two steps back and describe the problem are you trying to solve.

Hi Jay, sorry for my delayed reply. We need to stop infinite scroll after loading 5 to 10 pages somehow or completely disable it in home page and even in category pages.

Can you say more about why that is important. What is your problem with infinite scrolling?

I can imagine that it can be an annoying feature for many users

That’s still not specific enough. We’re looking for more specific details here so the problem can be understood.

Why does infinite scrolling need to be disabled? Why is a user finding infinite scrolling annoying?

We’re looking for specific answers to these questions because disabling infinite scrolling isn’t trivial and there might be an alternative solution, or there might be a problem someone’s running into that may help us improve infinite scrolling.

I am not suggesting to remove this feature permanently, but maybe there can be a flag to disable it in certain scenarios

Which scenarios do you have in mind? And like Kris, I’m also curious to know why.

I always had a problem with infinite scroll in tumblr. It didn’t load properly anymore after a certain amount of posts and it started to buck. It just wasn’t any fun. Maybe the problem was my weak internet connection?
Also, it`s easier to find certain posts if they are on a certain page rather than in a whole line of posts.

The only time I have had a “problem” with infinite scroll is when I was looking for something specific and scrolled faster than than the responses were being returned. The “problem” being that I saw placeholders until the new content loaded in.

IMHO, if the problem is because of a slow connection, I don’t think it will make a lot of difference if content is scrolled in or paginated to. But if you really want pagination you can use a browser with JavaScript disabled. You will miss out on a lot of the JavaScript goodness, but you will have pagination.

If on the other hand the problem is because of exceeded memory limits that might be something important to look into.

I’m not so sure, many lines vs. many pages seem like two sides of the same coin to me.

Perhaps you are looking for the advanced search page?
https://meta.discourse.org/search?expanded=true

您好,我来到这里是因为我想找到一种方法来禁用“最新”页面的无限滚动功能。这是我们的默认标签页/页面,我们希望用户能够滚动到底部,因为那里有重要链接和法律信息。

该论坛是网站的一部分,该网站还包含博客和其他静态页面。因此,信息需要以一致的方式展示(相同的位置、相同的格式/外观)。设置页脚是合理的,因为我们不希望将链接深埋在菜单中。

您有什么建议吗?

将首页从“最新”更改为“分类”,并将 桌面分类页面样式 更改为“分类带最新主题”,将有效禁用您的着陆页的无限滚动功能。

明白了,非常感谢您的快速回复。
我们其实不太喜欢“分类”布局,我们更希望突出最新的话题,并让读者能够专注于这种单列设计。同时,展示话题中的互动情况对我们也很重要,例如显示参与讨论的不同用户。

所以请确认一下,开发人员是否可以通过修改代码来禁用无限滚动(改为“加载更多”按钮)?

不,这是不可能的。

我想在这里补充一点。
无限滚动是一种用户体验上的反模式。
它让用户永远无法到达页面的底部。
大多数网站都设有“巨型页脚”,作为导航的安全网,提供进一步的分类、分享链接,以及法律要求的链接(如隐私政策、无障碍信息等)。

虽然分页并不受所有人喜爱,但它将控制权交还给用户,并允许链接到特定的结果集,而不是迫使用户“一直滚动直到找到所需内容”(当然,搜索是更好的工具)。

Discourse 团队是否愿意考虑可选地支持“加载更多”按钮,而不仅仅是无限滚动?

不,我们的立场在此没有改变,抱歉。