|
3 | 3 | <meta name="viewport" content="width=device-width, minimum-scale=1.0"> |
4 | 4 |
|
5 | 5 | {% if page.page-class == "page--home" %} |
6 | | -<!-- Fire off masthead download nice and early. --> |
| 6 | +{% comment %} |
| 7 | +<!-- |
| 8 | + - Fire off masthead download nice and early. |
| 9 | + - Only needed on homepage. |
| 10 | + --> |
| 11 | +{% endcomment %} |
7 | 12 | <link rel="preload" href="/img/css/masthead.jpg" as="image" media="(max-width: 719px)"> |
8 | 13 | <link rel="preload" href="/img/css/masthead-medium.jpg" as="image" media="(min-width: 720px) and (max-width: 1023px)"> |
9 | 14 | <link rel="preload" href="/img/css/masthead-large.jpg" as="image" media="(min-width: 1024px)"> |
10 | 15 | {% endif %} |
11 | 16 |
|
12 | | -<!-- Preemptively open up connections for external assets (Twitter widgets etc). --> |
| 17 | +{% comment %} |
| 18 | +<!-- |
| 19 | + - Preemptively open up connections for external assets (Twitter widgets etc). |
| 20 | + - Only needed on pages with sidebars (i.e. non-feature pages). |
| 21 | + --> |
| 22 | +{% endcomment %} |
| 23 | +{% if page.layout != "feature" %} |
13 | 24 | <link rel="preconnect" href="//cdn.carbonads.com"> |
14 | 25 | <link rel="preconnect" href="//srv.carbonads.net"> |
15 | 26 | <link rel="preconnect" href="//platform.twitter.com"> |
16 | 27 | <link rel="preconnect" href="https://platform.twitter.com"> |
17 | 28 | <link rel="preconnect" href="https://syndication.twitter.com"> |
18 | 29 | <link rel="preconnect" href="https://cdn.syndication.twimg.com"> |
| 30 | +{% endif %} |
| 31 | + |
19 | 32 | <link rel="preconnect" href="//www.google-analytics.com"> |
20 | 33 | <link rel="preconnect" href="https://www.google-analytics.com"> |
21 | 34 |
|
|
57 | 70 | <meta name="theme-color" content="#f43059"> |
58 | 71 | <link rel="manifest" href="/manifest.json"> |
59 | 72 |
|
| 73 | +{% if page.layout != "feature" %} |
60 | 74 | <script src="https://platform.twitter.com/widgets.js" defer></script> |
| 75 | +{% endif %} |
61 | 76 |
|
62 | 77 | </head> |
0 commit comments