From f25b0aae39fd3a92c2f22f146eaffedfd6a4db9c Mon Sep 17 00:00:00 2001 From: qsm-odoo Date: Fri, 23 Oct 2020 07:44:40 +0000 Subject: [PATCH] [FIX] web: preload font awesome font for frontend layouts This commit adds an easy improvement fixing a page speed warning: the font awesome font (declared in a font-face in assets_common) can be preloaded. The only problematic point was that font-awesome defines the font by a series of URL using different font formats. Only one can be preloaded (otherwise you would load files for no reason). As all Odoo supported browsers use the woff2 format, we only preload that one. At the cost of a warning for other browsers which use a different format. task-2350647 closes odoo/odoo#60715 X-original-commit: 60c787679260a97c58f399af1a51d7549429f979 Signed-off-by: Quentin Smetz (qsm) --- addons/web/views/webclient_templates.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/web/views/webclient_templates.xml b/addons/web/views/webclient_templates.xml index e90f55d71c9..37587fb972c 100644 --- a/addons/web/views/webclient_templates.xml +++ b/addons/web/views/webclient_templates.xml @@ -467,6 +467,7 @@ +