Skip to content

Commit d1f3fff

Browse files
committed
More performance enhancement
1 parent 2ed7887 commit d1f3fff

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

nuxt.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ 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' },
32+
{ rel: 'preconnect', href: 'https://api.mapbox.com', crossorigin: true },
33+
{ rel: 'preconnect', href: 'https://www.google-analytics.com', crossorigin: true },
34+
{ rel: 'preconnect', href: 'https://fonts.gstatic.com', crossorigin: true },
3435
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' }
3536
]
3637
},

pages/index.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,7 @@ export default {
5757
onToggle() {
5858
this.isOpen = !this.isOpen
5959
}
60-
},
61-
mounted() {
62-
this.$nextTick(() => {
63-
this.$nuxt.$loading.start()
64-
setTimeout(() => this.$nuxt.$loading.finish(), 500)
65-
})
66-
},
60+
}
6761
}
6862
</script>
6963

0 commit comments

Comments
 (0)