Ok. I managed to increase page loading speed by at least 100% by setting in nuxt.config.js file
vuetify: {
optionsPath: './vuetify.options.js',
defaultAssets: {
icons: false
}
},
Then you should locally import material icons like so:
import { mdiPlusCircle } from '@mdi/js'
data() {
return: {
addCircleIcon: mdiPlusCircle,
}
}
And then you can use this addCircleIcon in your template like so:
<v-icon> {{ addCircleIcon }}</v-icon>
So now instead of loading material design icons from cdn, which is the default vuetify behavior, i do it locally and it doesn't block the initial rendering of the page.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…