From e396e043c635aa556353832d2f70ae4d854ce25e Mon Sep 17 00:00:00 2001 From: Adhityaa Chandrasekar Date: Wed, 1 May 2019 17:52:02 -0400 Subject: [PATCH] source-sans.scss: use font-swapping --- frontend/sass/source-sans.scss | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/frontend/sass/source-sans.scss b/frontend/sass/source-sans.scss index b4e192e..bd80f6c 100644 --- a/frontend/sass/source-sans.scss +++ b/frontend/sass/source-sans.scss @@ -2,6 +2,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url([[[.CdnPrefix]]]/fonts/source-sans-300-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; @@ -10,6 +11,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url([[[.CdnPrefix]]]/fonts/source-sans-300-cyrillic.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; @@ -18,6 +20,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url([[[.CdnPrefix]]]/fonts/source-sans-300-greek-ext.woff2) format('woff2'); unicode-range: U+1F00-1FFF; @@ -26,6 +29,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url([[[.CdnPrefix]]]/fonts/source-sans-300-greek.woff2) format('woff2'); unicode-range: U+0370-03FF; @@ -34,6 +38,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url([[[.CdnPrefix]]]/fonts/source-sans-300-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; @@ -42,6 +47,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url([[[.CdnPrefix]]]/fonts/source-sans-300-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; @@ -50,6 +56,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 300; src: local('Source Sans Pro Light'), local('SourceSansPro-Light'), url([[[.CdnPrefix]]]/fonts/source-sans-300-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; @@ -58,6 +65,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 400; src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url([[[.CdnPrefix]]]/fonts/source-sans-400-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; @@ -66,6 +74,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 400; src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url([[[.CdnPrefix]]]/fonts/source-sans-400-cyrillic.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; @@ -74,6 +83,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 400; src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url([[[.CdnPrefix]]]/fonts/source-sans-400-greek-ext.woff2) format('woff2'); unicode-range: U+1F00-1FFF; @@ -82,6 +92,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 400; src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url([[[.CdnPrefix]]]/fonts/source-sans-400-greek.woff2) format('woff2'); unicode-range: U+0370-03FF; @@ -90,6 +101,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 400; src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url([[[.CdnPrefix]]]/fonts/source-sans-400-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; @@ -98,6 +110,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 400; src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url([[[.CdnPrefix]]]/fonts/source-sans-400-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; @@ -106,6 +119,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 400; src: local('Source Sans Pro Regular'), local('SourceSansPro-Regular'), url([[[.CdnPrefix]]]/fonts/source-sans-400-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; @@ -114,6 +128,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 700; src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url([[[.CdnPrefix]]]/fonts/source-sans-700-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; @@ -122,6 +137,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 700; src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url([[[.CdnPrefix]]]/fonts/source-sans-700-cyrillic.woff2) format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; @@ -130,6 +146,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 700; src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url([[[.CdnPrefix]]]/fonts/source-sans-700-greek-ext.woff2) format('woff2'); unicode-range: U+1F00-1FFF; @@ -138,6 +155,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 700; src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url([[[.CdnPrefix]]]/fonts/source-sans-700-greek.woff2) format('woff2'); unicode-range: U+0370-03FF; @@ -146,6 +164,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 700; src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url([[[.CdnPrefix]]]/fonts/source-sans-700-vietnamese.woff2) format('woff2'); unicode-range: U+0102-0103, U+0110-0111, U+1EA0-1EF9, U+20AB; @@ -154,6 +173,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 700; src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url([[[.CdnPrefix]]]/fonts/source-sans-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; @@ -162,6 +182,7 @@ @font-face { font-family: 'Source Sans Pro'; font-style: normal; + font-display: swap; font-weight: 700; src: local('Source Sans Pro Bold'), local('SourceSansPro-Bold'), url([[[.CdnPrefix]]]/fonts/source-sans-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;