Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
7105 Lượt xem

Hi.

I am trying to speed up the page loading time of a Odoo website, using Google PageSpeed Insights, and right now, the most critical element is the render blocking java-script caused by web.assets_common.js web.assets_frontend.js

The solution would could be to load these scripts asynchronously or even defer its loading (and since the web looks just fine without js, this would be the ideal solucion). This could be archived adding the async or deffer atribute to the script tag.

So, how could i add the async atribute to the  script tag? The closest thing i found in the template (in main layout) is <t t-call-assets="web.assets_common" t-js="false"/>, but i'm clueless of how to modify the produced script tag.

Ảnh đại diện
Huỷ bỏ

Hello !
Did you solved it ? :)

Same question ;)

Hi,

Did you find how to do this ?

I would like to add "async" to scripts tags for assets.

Regards

I am looking for a solution aswell. if anyone finds an answer please share

Hey! 

Looking for a solution as well

Same question, this is. relevant for speed optimization 

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 22
6103
0
thg 12 24
1154
0
thg 11 24
1367
2
thg 10 22
5748
1
thg 10 22
3336