-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
'init' mode not working at all #24
Comments
Can you confirm which module version / nuxt version you're using? Seems to be working correctly for me in Nuxt 3 |
macOS: Ventura 13.2 |
So I figured out what's happened, if I set some variable in runtimeConfig public to Full nuxt.config.js:
EDIT: setting true to runtimeConfig public variable is the issue. |
Also for dev environment it delays everything except entry.mjs, but in production it delays nothing in the init mode. |
Hi, First thanks @harlan-zw for this great module! I have the same problem 'init' mode is not working but 'mount' is. |
Fix is available in 1.2.1 thanks for @jbmolle :) |
Can you please tell me one thing if we have used init mode, then all javascript will be delay, but if we have used init mode and after that TBT is 0. It can impact on LCP and FCP ? After I used init mode then FCP and LCP was metrics same as before. |
Issue is fixed for nuxt <= 3.6.5, but in nuxt 3.7.x plugin detected the mode and started working but something has changed (about htmlContext structure from render:html hook i guess), so it don't actually delay things in the init mode, need to reopen and fix |
I was about to post an issue for this, but looks like it is fixed in nuxt <= 3.6.5 like @zhaivoronok mentioned, mount mode is working as expected though. My versions: |
Actually I think the 2 scripts |
The problem is that the entry file (entry.ts or entry.async.ts) is hardcoded in Nuxt. |
I believe this got fixed |
problem reproduced on nuxt version > 3.11.1 and your module 1.3.5 |
Describe the bug
Can't get 'init' mode to work, only 'mount' is working. With 'init' it doesn't delay hydration at all.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
JS files must be delayed.
Actual behavior
Nothing delayed, nothing in console.
The text was updated successfully, but these errors were encountered: