Skip to content

Commit e56f6da

Browse files
authored
Merge pull request #345 from ember-learn/fix-content-for
only preload variable font
2 parents 9593dba + eb04395 commit e56f6da

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

index.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,8 @@ module.exports = {
3232

3333
contentFor: function(type) {
3434
if (type === 'head') {
35-
const filesToPreload = [
36-
'/fonts/Inter-roman.var.woff2?v=3.11',
37-
'/fonts/Inter-Regular.woff2?v=3.11',
38-
'/fonts/Inter-SemiBold.woff2?v=3.11',
39-
'/fonts/Inter-ExtraLight-BETA.woff2?v=3.11',
40-
];
41-
4235
// preload the most common fonts for modern browsers
43-
return filesToPreload
44-
.map(file => `<link rel="preload" as="font" type="font/woff2" href="${file}" crossorigin>`)
45-
.join('\n');
36+
return `<link rel="preload" as="font" type="font/woff2" href="/fonts/Inter-roman.var.woff2?v=3.15" crossorigin>`;
4637
}
4738

4839
return '';

0 commit comments

Comments
 (0)