-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The module increasing TBT. Need help #1165
Comments
Probably seeing #690 due to large amount of routes. |
Yeah got that, This is happening because of a large number of routes generated but can't find any clue how to stop generating all locales routes (unnecessary routes for the page). |
Do you have any unnecessary routes? What do you consider unnecessary? The way this module works is it creates a separate route for each locale so you end up with "number of page routes * number of locales". It's all necessary from this module's point of view. The alternative would be to use the "no_prefix" strategy so that no additional routes will be created but that of course has its cons. Or maybe you can utilize the dynamic routes so that you have a single route that handles most of the pages dynamically... It's not really a bug in this module so I can't help you otherwise. |
OK got it. But is there any way that I can try to optimize execution time? |
See nuxt/nuxt#7473 On your side you probably can only do what I've outlined above. |
OK, Thanks for the reference. Let me try it. |
Closing as duplicate of #690 |
I made an app with up to 17 languages, this is causing an issue with TBT(Total Blocking Time) [Which causing a lower score on pageSpeed].
nuxt.config
Any solution to this, which can help me to reduce TBT?
Need a faster method to use i18n, please help.
The text was updated successfully, but these errors were encountered: