Skip to content

Commit 2ed7887

Browse files
committed
More performance enhancement
1 parent 12aced1 commit 2ed7887

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

nuxt.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ module.exports = {
2929
{ hid: 'og:url', property: 'og:url', content: 'https://covid-worldwide.herokuapp.com' }
3030
],
3131
link: [
32+
{ rel: 'preconnect', href: 'https://www.google-analytics.com' },
33+
{ rel: 'preconnect', href: 'https://fonts.gstatic.com' },
3234
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
3335
]
3436
},

static/font.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
WebFontConfig = {
2-
google: { families: [ 'Roboto:300,400,700' ] }
2+
google: {
3+
families: ['Roboto:300,400,700&display=swap']
4+
}
35
}
46
;(function(){
57
var wf = document.createElement('script')

0 commit comments

Comments
 (0)