mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 22:18:46 +02:00
N°3685 Preload necessary fonts to speed up display
This commit is contained in:
committed by
Molkobain
parent
61ee4d6807
commit
b1b1d25186
@@ -15,7 +15,9 @@
|
||||
<link rel="shortcut icon" href="{{ aPage.sFaviconUrl|add_itop_version|raw }}">
|
||||
{% endif %}
|
||||
<link rel="search" type="application/opensearchdescription+xml" title="iTop" href="{{ aPage.sAbsoluteUrlAppRoot }}pages/opensearch.xml.php">
|
||||
|
||||
{% for sPreloadedFont in aPage.aPreloadedFonts %}
|
||||
<link rel="preload" href="{{ sPreloadedFont['font'] }}" as="font" type="font/{{ sPreloadedFont['type'] }}" crossorigin>
|
||||
{% endfor %}
|
||||
{# Stylesheets MUST be loaded before any scripts otherwise we may face problems such as
|
||||
- Visual glitches
|
||||
- jQuery scripts spurious problems (like failing on a 'reload') #}
|
||||
|
||||
Reference in New Issue
Block a user