kv-explorer-ui icon indicating copy to clipboard operation
kv-explorer-ui copied to clipboard

perf: Use WebFontloader to load roboto font + icons async

Open TheAlexLichter opened this issue 7 years ago β€’ 2 comments

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']
    }
  }

TheAlexLichter avatar Dec 04 '18 15:12 TheAlexLichter

@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 avatar Dec 06 '18 07:12 bcnzer

@bcnzer You are welcome! I wasn't aware of that as well (until I discovered webfontloader and wrote that package roughly 2 weeks ago πŸ™Š

TheAlexLichter avatar Dec 06 '18 09:12 TheAlexLichter