コンテンツへスキップ
Odoo メニュー
  • サインイン
  • 無料で15日試す
  • アプリ
    財務
    • 会計
    • 請求
    • 経費
    • スプレッドシート(BI)
    • ドキュメント管理
    • 署名
    販売
    • CRM
    • 販売
    • POS店舗
    • POSレストラン
    • サブスクリプション
    • レンタル
    ウェブサイト
    • ウェブサイトビルダー
    • eコマース
    • ブログ
    • フォーラム
    • ライブチャット
    • eラーニング
    サプライチェーン
    • 在庫
    • 製造
    • 製品ライフサイクル管理 (PLM)
    • 購買
    • 整備
    • 品質
    人事業務
    • 従業員管理
    • 採用
    • 休暇管理
    • 人事評価
    • リファラル
    • フリート
    マーケティング
    • ソーシャルマーケティング
    • メールマーケティング
    • SMSマーケティング
    • イベント
    • マーケティングオートメーション
    • アンケート調査
    サービス
    • プロジェクト管理
    • タイムシート
    • フィールドサービス
    • ヘルプデスク
    • 計画
    • アポイントメント
    生産性向上ツール
    • ディスカッション
    • 承認
    • IoT
    • VoIP
    • ナレッジ
    • WhatsApp
    サードパーティアプリ Odooスタジオ Odooクラウドプラットホーム
  • インダストリー(業種別ソリューション)
    小売
    • 書店
    • アパレルショップ
    • 家具専門店
    • 食料品店
    • 金物店
    • 玩具店
    飲食・ホスピタリティ業界
    • バー・パブ
    • レストラン
    • ファストフード
    • ゲストハウス
    • 飲料販売代理店
    • ホテル
    不動産
    • 不動産会社
    • 建築事務所
    • 建設
    • 不動産管理
    • 造園
    • 住宅所有者組合
    コンサルティング
    • 会計事務所
    • Odooパートナー
    • マーケティングエージェンシー
    • 法律事務所
    • 人材派遣
    • 監査・認証
    製造
    • テキスタイル
    • 金属
    • 家具
    • 飲食
    • 醸造所
    • コーポレートギフト
    ヘルス & フィットネス
    • スポーツクラブ
    • 眼鏡店
    • フィットネスセンター
    • ウェルネス専門家
    • 薬局
    • ヘアサロン
    業種
    • 便利屋
    • IT ハードウェア・サポート
    • 太陽エネルギーシステム
    • 靴メーカー
    • クリーニングサービス
    • 空調設備サービス
    その他
    • 非営利団体
    • 環境機関
    • ビルボードレンタル
    • 写真
    • 自転車リース
    • ソフトウェアリセラー
    すべての業種を見る
  • コミュニティ
    学ぶ
    • チュートリアル
    • ドキュメンテーション
    • 認定
    • トレーニング
    • ブログ
    • ポッドキャスト
    教育サポート
    • 教育プログラム
    • Scale Up! ビジネスゲーム
    • Odooオフィス訪問
    ソフトを入手
    • ダウンロード
    • エディションを比較
    • リリース
    コラボレーション
    • Github
    • フォーラム
    • イベント
    • 翻訳
    • パートナーになる
    • パートナー様向けサービス
    • 会計事務所を登録
    サービス利用
    • パートナー一覧
    • 会計事務所一覧
    • 今すぐ相談する
    • 導入支援サービス
    • お客様一覧
    • サポート
    • アップグレード
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    製品デモを利用する
  • 料金
  • ヘルプ

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • 会計
  • 在庫
  • PoS
  • プロジェクト
  • MRP
All apps
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
コミュニティで交流するには登録する必要があります。
全てのポスト 人々 バッジ
タグ (全て表示)
odoo accounting v14 pos v15
このフォーラムについて
ヘルプ

web.assets_frontend_lazy.min.js file is heavily unminified and open for lots of improvement

購読

この投稿に活動があった際に通知を受け取ります

この質問にフラグが付けられました
pagespeedperfomance
3 返信
11445 ビュー
アバター
Juan Valencia

Hi all,

Lately I've been playing a lot with PageSpeed Insights improving the performance of my website (with Online Odoo hosting) for SEO purposes and I've come to the point where the file web.assets_frontend_lazy.min.js is the performance bottleneck.


Even though it is supposed to be minified it is heavily unminified. Around line 9787 all the way to the end line, 12278, there is a QWEB code with heavy indentation, lots of extra whitespaces and comments. Why is there a qweb template loaded into a JS variablie in a file that is supposed to be JS minified only... Anyway, the rest of the file seems properly minified with uselful comments left as title to split the code into chunks. That's good.


So, with this in mind I did a test. Downloaded that file (2.4MB !), applied a conservative minifying algorithm eliminating mostly just comments (no uglyfiyng!) and size went down to 2.25MB, and then a bit more by doing some manual whitespacing removal in my script editor for a total savings of let's round it up to 6.5% of file size. (That's a lot for just extra whitespace and comments). Then reuploaded it into the database replacing the original bundle and ran more PageSpeed tests. 

My mobile homepage was scoring around 75 with the best score at 79 with about 800ms blocking time.  I ran more tests and immediately got multiple results over 80, with the highest at 84 with a blocking time of 530ms. I conclude the results went up by 5 points in performance alone from merely removing comments and whitespace. A massive improvemet.

 

The point I want to make for the Odoo team is that further minifying that file will heavily increase performance for all users. Keep mind that the browser will stop the page rendering while downloading the brotli compressed web.assets_frontend_lazy.min.js (603kb (default) vs 571kb (modified)), uncompress it, parse the JS (bottleneck is here), execute and render the page. 

Further improvements could be made by even removing some legacy functions in that file. Also, archiving some Assets helps to reduce the JS file a bit, however, there are only about 20-30 js assets that can be archived. Way more assets need to be made accesible for end users to archive them.


Thanks!

0
アバター
破棄
アバター
shraddha
最善の回答

From where I can get the lazyload assets was not able to find it got an error Uncaught promise error under the lazyload min js file but was not able to find it through developer section.

0
アバター
破棄
アバター
Juan Valencia
著作者 最善の回答

Hi Julien, 

Thanks for replying here and via support ticket.

Interesting, didn't know Odoo was open source. Cool. Maybe in the future I could do a PR. 

I'm using the Odoo online hosted option (enterprise). Where exactly can I find the python files mentioned in those documents? I'm searching the manifest one but can't find it. All I can find are these Assets but they are quite limited.

 

If my understading is correct, the python framework is only available to the either those hosting the open source version or the .sh plan, right? but that framework isn't available for the enterprise option as they are managed by Odoo themselves. So, coming back to the original topic of this post, that means that if I want to further improve the web.assets_frontend_lazy.min.js file, my only option is editing it after it is automatically compiled and then re uploading to the backend?

0
アバター
破棄
アバター
Julien Launois (jula)
最善の回答

Hi Juan !

Here is the documentation about assets bundles https://www.odoo.com/documentation/16.0/developer/reference/frontend/assets.html

Basically every module has a manifest file where it defines which file should be in which asset bundle.

The process of retrieving the file paths to be included in those bundles is done here: https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/models/ir_asset.py#L90

The minifying process is done here:

https://github.com/odoo/odoo/blob/16.0/odoo/addons/base/models/assetsbundle.py


If you have ideas about improving those processes you are more than welcome to contribute. Here is how you can do that: https://github.com/odoo/odoo/wiki/Contributing. Feel free to report some issues or even make a PR !
0
アバター
破棄
ディスカッションを楽しんでいますか?読むだけでなく、参加しましょう!

今すぐアカウントを作成して、限定機能を利用したり、素晴らしいコミュニティと交流しましょう!

登録
関連投稿 返信 ビュー 活動
Performace relation to image (media) files in Odoo
images perfomance odoo18 odoo17
アバター
0
10月 24
1786
Which is better Odoo13 Point of Sale or Odoo14 Point of Sale?
point_of_sale Odoo13 v14 perfomance
アバター
アバター
1
12月 21
2550
Odoo.sh far too slow on mobile
performance hosting loading assets pagespeed
アバター
0
12月 25
3782
Users Table takes too much time to load when having more than 100000 portal users.
postgresql optimization loading Odoo13.0 perfomance
アバター
0
6月 24
2131
Is it useful to use Varnish, Nginx, and ngx_pagespeed with Odoo v8? 解決済
configuration cache nginx optimization webserver Varnish pagespeed caching vcl
アバター
1
5月 24
16750
コミュニティ
  • チュートリアル
  • ドキュメンテーション
  • フォーラム
オープンソース
  • ダウンロード
  • Github
  • Runbot
  • 翻訳
サービス
  • Odoo.shホスティング
  • サポート
  • アップグレード
  • カスタム開発
  • 教育プログラム
  • 会計事務所一覧
  • パートナー一覧
  • パートナーになる
企業情報
  • 会社概要
  • ブランドアセット
  • お問い合わせ
  • 採用情報
  • イベント
  • ポッドキャスト
  • ブログ
  • お客様一覧
  • リーガル情報 • プライバシーポリシー
  • セキュリティ
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo(オドゥー)は、CRM、eコマース、会計、在庫管理、POS、プロジェクト管理など、企業のさまざまな業務を一つのシステムで管理できる、ベルギー発のオープンソースのERPソフトウェアです。

高機能で使いやすく、完全に統合されたERPとして、ユニークな価値を提供しています。

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now