Odoo.sh 页面在移动设备上加载速度太慢

发布于 2025-01-14 16:57:56 字数 1296 浏览 3 评论 0原文

在手机上,最简单的 Odoo 页面加载速度太慢 (Odoo.sh v13)

例如,对于简单的联系页面表单:

https://www.samalife.fr/contact 页面速度测试:得分 35 / 100 https://pagespeed.web.dev/ report?url=https%3A%2F%2Fwww.samalife.fr%2Fcontact

对于包括图像和视频的普通页面内容来说更糟: https://www.samalife.fr/bas-du-dos 页面速度测试:得分 28 / 100

速度诊断指出了这些瓶颈:

  • JS SCRIPTS ( 2,4 s ) .../web.assets_common_lazy.js .../web.assets_frontend_lazy.js

  • CSS 脚本 ( 2,4 s ) .../web.assets_common.css .../web.assets_frontend.css

  • 未使用的 CSS 脚本 ( 1,6 s ) .../web.assets_common.css .../web.assets_frontend.css

  • 服务器响应太慢(0,8 秒)

有没有办法改善移动设备上页面加载缓慢所涉及的不同方面:js、css、服务器响应?

  • 如何实现css和javascript文件的延迟加载?

  • 如何在 Odoo 中实现压缩以最小化 css 和 javascript 文件?

  • Odoo.sh 是否提供替代托管数据包以获得更高的性能?

相比之下,对于同一页面(contactus),rosehosting 演示: https://odoo-demo.rosehosting.com/contactus 获得 70 / 100 分

On mobile phone, the most simple Odoo page loads far too slowly (Odoo.sh v13)

For instance, for the simple contact page form:

https://www.samalife.fr/contact
Page Speed Test : score 35 / 100
https://pagespeed.web.dev/report?url=https%3A%2F%2Fwww.samalife.fr%2Fcontact

And it's even worse for a normal page content including images and videos :
https://www.samalife.fr/bas-du-dos
Page Speed Test : score 28 / 100

The speed diagnostic points these bottlenecks :

  • JS SCRIPTS ( 2,4 s )
    .../web.assets_common_lazy.js
    .../web.assets_frontend_lazy.js

  • CSS SCRIPTS ( 2,4 s )
    .../web.assets_common.css
    .../web.assets_frontend.css

  • UNUSED CSS SCRIPTS ( 1,6 s )
    .../web.assets_common.css
    .../web.assets_frontend.css

  • SERVER RESPONSE TOO SLOW ( 0,8 s )

Is there a way to improve the different aspects involved in theses slow page load on mobile : js, css, server response ?

  • How to implement lazy loading for css and javascript files ?

  • How to implement compression in Odoo to minimze css and javascript files ?

  • Does Odoo.sh provide alternative hosting packets for higher performance ?

Comparatively, for the same page (contactus), the rosehosting demo :
https://odoo-demo.rosehosting.com/contactus
get a score of 70 / 100

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文