滚动缓慢且滞后,为什么?

发布于 2024-12-17 16:41:20 字数 184 浏览 3 评论 0原文

我目前正在开发一个网站,您可以在[此处]找到它!

它正在进行中,但我仍然可以弄清楚为什么滚动如此慢。

我完全意识到我需要缩小我的 JS,并且可能使用一些 head.js 魔法来减少加载时间。

此外,我在网站上使用字体,文本需要很长时间才能显示,有没有办法减少这种情况?

感谢您的时间和耐心。

I'm currently developing a website, you can find it [here] !

It's work in progress but still I can figure out why the scroll is so slow.

I'm totaly aware that I will need to minified my JS and probably use some of the head.js magic to reduce loading time.

Moreover, I'm using font-face on the website and the text takes ages to be displayed, is there a way of reducing that ?

Thanks for your time and patience.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

厌倦 2024-12-24 16:41:20

这是因为您在 body 标记上设置了 position:relative; ,在 html 标记上设置了 overflow-y:scroll;
我没有看到 position:relative; 对 body 的任何影响,所以我想说只需将其删除并将 overflow-y:scroll; 从 html 移动到 body 标记即可

It is because you set position: relative; on body tag and overflow-y: scroll; on html tag.
I don't see any effect of position: relative; on body so I would say just remove it and move overflow-y: scroll; from html to body tag

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文