We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce5ea61 commit 2b15255Copy full SHA for 2b15255
_headers
@@ -109,8 +109,10 @@ Add resource hints for site-wide font faces.
109
{% for family in site.font-face %}
110
{% for style in family[1] %}
111
{% for href in style[1] %}
112
- {% capture hint %}<{{ href }}>; rel=preload; as=font; pr=1.0; crossorigin{% endcapture %}
113
- {% assign all = all | push:hint %}
+ {% if href contains '.woff2' %}
+ {% capture hint %}<{{ href }}>; rel=preload; as=font; pr=1.0; crossorigin{% endcapture %}
114
+ {% assign all = all | push:hint %}
115
+ {% endif %}
116
{% endfor %}
117
118
0 commit comments