Home > Blockchain >  Initializing data using nuxtjs asyncData hook slows page rendering
Initializing data using nuxtjs asyncData hook slows page rendering

Time:04-26

Loading data from within the asyncData hook using $axios causes a slight delay when loading the page. I want a natural and fast page movement like when loading data using mounted hook, but I can't use mounted because of SEO.
Is there any solution?

CodePudding user response:

You could use the non blocking fetch() hook, seems like the perfect solution in your case.

  • Related