# Google抱怨Discourse网站上交互反应到下一次绘制（INP）缓慢

**URL:** <https://meta.discourse.org/t/google-complaining-about-slow-interaction-to-next-paint-inp-on-discourse-sites/271108>\
**Category:** General\
**Tags:** seo\
**Created:** [2023 年7 月 10 日 12:31 UTC](https://meta.discourse.org/t/google-complaining-about-slow-interaction-to-next-paint-inp-on-discourse-sites/271108 "2023-07-10T12:31:47Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
发布日期： [2023 年7 月 11 日 19:49 UTC](https://meta.discourse.org/t/google-complaining-about-slow-interaction-to-next-paint-inp-on-discourse-sites/271108/8 "2023-07-11T19:49:42Z")

</div>

> [@merefield](#):
>
> 你能提醒我，这里在技术方法上有什么高层次的改变，从而实现了这种改进？

对 INP 的改进？

使用旧的加载动画时，序列是这样的：

1. 点击链接
2. Ember 拆除所有 DOM 并清理旧路由的组件
3. 加载动画渲染到屏幕
4. 网络请求解析后，将新路由渲染到 DOM

使用滑块时，我们跳过了第 2 步。滑块会立即渲染，无需等待昂贵的拆除过程。

> [@david](#):
>
> 改进 INP 是将 Discourse 的页面导航动画从全页面“加载动画”切换到滑块的动机之一

我应该在这里澄清一下：我们切换默认设置的主要动机是改进用户体验。INP 指标的改进也很好，但并不是改变的主要原因。

---

_[View the full topic](https://meta.discourse.org/t/google-complaining-about-slow-interaction-to-next-paint-inp-on-discourse-sites/271108)._
