# “不支持的浏览器”网站版本中无法滚动

**URL:** <https://meta.discourse.org/t/no-scrolling-in-unsupported-browser-site-version/269014>\
**Category:** Support\
**Created:** [2023年六月20日 11:14 UTC](https://meta.discourse.org/t/no-scrolling-in-unsupported-browser-site-version/269014 "2023-06-20T11:14:17Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![ValdikSS](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/valdikss/32/157221_2.png) [@ValdikSS](https://meta.discourse.org/u/ValdikSS)\
**Post date:** [2023年六月20日 11:14 UTC](https://meta.discourse.org/t/no-scrolling-in-unsupported-browser-site-version/269014/1 "2023-06-20T11:14:17Z")

</div>

Discourse 3.1.0.beta5。

当网站在不支持的桌面浏览器中加载时（或者，我猜，也被爬虫抓取时），页面无法滚动。

这是由于初始的 `overflow-y: hidden` 设置用于启动屏幕，但由于 JavaScript 错误等原因，“应用程序”从未启动，也从未有机会移除该属性。

> <https://github.com/discourse/discourse/blob/cee15d4177bee7f4302ffba66055ab8f90b1c244/app/views/common/_discourse_splash.html.erb#L124>

第一个坏提交是

> <https://github.com/discourse/discourse/commit/526115f11a9313c079c230c1d7359c865607115e>
>
> We currently remove the splash screen once Discourse starts booting.
> 
> This can… be an issue on very slow devices, which can take up to 6 seconds. This PR ensures that we don't remove the splash until the browser has finished parsing all of the site's assets. It won't impact fast devices.
> 
> Internal topic /t/65378/60

---

_[View the full topic](https://meta.discourse.org/t/no-scrolling-in-unsupported-browser-site-version/269014)._
