简体   繁体   English

在同构 React 应用程序中减少 FID(首次输入延迟)的好方法有哪些?

[英]What are some good ways to reduce FID (First input delay) in isomorphic React application?

FID for pointerdown event in very in my application.在我的应用程序中非常用于指针向下事件的 FID。 Its an Isomoprphic react application.它是一个同构反应应用程序。 Could anyone suggest some good ways to reduce it.任何人都可以提出一些减少它的好方法。 Recently google search console has introduced speed (experimental).最近谷歌搜索控制台引入了速度(实验性)。 It's showing most of my website pages are slow because of high FID (> 300ms).由于高 FID(> 300 毫秒),它显示我的大多数网站页面都很慢。

  • Reduce bundle size减小捆绑包大小
  • Use server side rendering (I guess you use it because you have an Isomorphic app)使用服务器端渲染(我猜你使用它是因为你有一个 Isomorphic 应用程序)
  • Use Code-Splitting使用代码拆分
  • Check website with google page speed (it helps you to identify "the weakest" parts also this google service provides suggestions on how page may be improved)使用谷歌页面速度检查网站(它可以帮助您识别“最薄弱的”部分,这个谷歌服务还提供有关如何改进页面的建议)

Also I need more details about network waterfall (for example it can be big images (you can optimize it or use lazy load for your images) or another requests that can reduce fid)我还需要有关网络瀑布的更多详细信息(例如,它可以是大图像(您可以对其进行优化或对图像使用延迟加载)或其他可以减少 fid 的请求)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM