19
19
if (sessionStorage .fontsLoadedCriticalFoftPreload ) {
20
20
document .documentElement .className += " fonts-loaded-2" ;
21
21
return ;
22
- }
23
- document .fonts .load (" 1em 'Inter Subset'" ).then (function () {
24
- document .documentElement .className += " fonts-loaded-1" ;
25
- Promise .all ([
26
- document .fonts .load (" 400 1em 'Inter'" ),
27
- document .fonts .load (" 400 italic 1em 'Inter'" ),
28
- document .fonts .load (" 500 1em 'Inter'" ),
29
- document .fonts .load (" 600 1em 'Inter'" ),
30
- document .fonts .load (" 700 1em 'Inter'" ),
31
- document .fonts .load (" 900 1em 'Inter'" ),
32
- ]).then (function () {
33
- document .documentElement .className += " fonts-loaded-2" ;
34
- // Optimization for Repeat Views
35
- sessionStorage .fontsLoadedCriticalFoftPreload = true ;
22
+ } else {
23
+ document .fonts .load (" 1em 'Inter Subset'" ).then (function () {
24
+ document .documentElement .className += " fonts-loaded-1" ;
25
+ Promise .all ([
26
+ document .fonts .load (" 400 1em 'Inter'" ),
27
+ document .fonts .load (" 400 italic 1em 'Inter'" ),
28
+ document .fonts .load (" 500 1em 'Inter'" ),
29
+ document .fonts .load (" 600 1em 'Inter'" ),
30
+ document .fonts .load (" 700 1em 'Inter'" ),
31
+ document .fonts .load (" 900 1em 'Inter'" ),
32
+ ]).then (function () {
33
+ document .documentElement .className += " fonts-loaded-2" ;
34
+ // Optimization for Repeat Views
35
+ sessionStorage .fontsLoadedCriticalFoftPreload = true ;
36
+ });
36
37
});
37
- });
38
+ }
38
39
}
39
40
})();
40
41
</script >
41
42
<link rel =" stylesheet" href =" /assets/css/main.scss" >
42
43
</head >
44
+
43
45
<body >
44
46
<a href =" #main" class =" skiplink" >{%- if page .lang == ' it' %} Salta al contenuto{% else %} Skip to content{% endif
45
47
%} </a >
58
60
<script type =" module" src =" /assets/js/modules/photoswipe.js" ></script >
59
61
{% endif %}
60
62
</body >
63
+
61
64
</html >
0 commit comments