gpt4 book ai didi

ruby-on-rails - rails : Page loading very long time

转载 作者:行者123 更新时间:2023-12-04 06:16:33 27 4
gpt4 key购买 nike

我有一个 Rails 项目。我在一个 Controller 中遇到了非常奇怪的事情:浏览器需要大约 3 分钟才能加载页面,但 Rails 会在日志中写入:

Completed 200 OK in 20563ms (Views: 17144.2ms | ActiveRecord: 324.4ms)

我知道 21 秒很长,但不是 3 分钟。 Data from a browser

我知道这些数据还不够,但我不希望完整的答案只是一个有问题的指针。此页面的大小约为 5 Mb。

最佳答案

延迟可能是由 config/environments/development.rb 中的 config.assets.debug = true 引起的。将此设置为 false 可能会解决您的问题。

By doing this,source files are combined together and source maps won't work (e.g. if using Sass/Coffee you won't see it in devtools)

关于ruby-on-rails - rails : Page loading very long time,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37056561/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com