-
Notifications
You must be signed in to change notification settings - Fork 27k
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
<Head /> doesn't wait for assets to finish loading #1011
Comments
I think this occurs only on Safari ? Please use Related: vercel/styled-jsx#102 |
Happening on latest chrome, it's actually a <Head>
<title>{me.firstName} {me.lastName} Website</title>
<link rel='shortcut icon' type='image/x-icon' href='/static/assets/favicon.ico' />
<link href='https://fonts.googleapis.com/css?family=Assistant:200,300,400,600,700,800|Lora:400,400i,700,700i' rel='stylesheet' />
<link href='/static/styles/normalize.css' rel='stylesheet' />
<link href='/static/styles/spacing.css' rel='stylesheet' />
<link href='/static/styles/layout.css' rel='stylesheet' />
<link href='/static/styles/theme.css' rel='stylesheet' />
<link href='/static/styles/global.css' rel='stylesheet' />
<link href='/static/styles/footer.css' rel='stylesheet' />
<meta name='viewport' content='width=device-width, initial-scale=1' />
</Head> Haven't tried adding keys or anything, but looking at the source, it doesn't look like it waits for any assets to load before transitioning. |
This is a bug. I think we should render particular tags like But basically, I think |
Awesome, I'm happy to hear that since linking stylesheets is the simplest and often the fastest way to put together a website.
Yah, I can't say I've tested this out, but I wonder if it could either check if that css file already exists (in the side-effect) or perhaps use |
Tags don't get re-rendered if already exist. The problem is they are removed if same tags are not included in other pages. So I rather recommend to have |
Ahh got it, that makes sense that the |
Just tried out the custom |
@matthewmueller hey, can you paste your final solution? 😄 |
If you have a
<link>
tag in your head and you do aRouter.push(...)
, I've noticed an occasional flash of unstyled content.The text was updated successfully, but these errors were encountered: