kv-explorer-ui
kv-explorer-ui copied to clipboard
perf: Use WebFontloader to load roboto font + icons async
Hey π
I'd suggest using nuxt-webfontloader to load the Roboto font and Material Icons asynchronously so you page will be loaded faster βΊοΈ
config (untested):
export default {
//...other nuxt.config.js content
webfontloader: {
google: {
families: ['Roboto:300,400,500,700:latin', 'Material+Icons']
}
}
@manniL Thank you very much telling me about this! I wasn't aware of this. This is my second Nuxt project ever π
Thanks again for telling me about this! I'll incorporate this shortly and in my other projects π
@bcnzer You are welcome!
I wasn't aware of that as well (until I discovered webfontloader and wrote that package roughly 2 weeks ago π