Skip to content
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

Prevent flash of 'undefined' when page loads? #49

Open
CaptainChemist opened this issue Sep 21, 2016 · 0 comments
Open

Prevent flash of 'undefined' when page loads? #49

CaptainChemist opened this issue Sep 21, 2016 · 0 comments

Comments

@CaptainChemist
Copy link

When my webpage loads I briefly get a flash of 'undefined' before the page loads. This flash happens over a fraction of a second. Is there a way just to remove the 'undefined'? I am not worried about the wait at all just the text. My SSR.ReactRouterRun looks like this:

ReactRouterSSR.Run(
  Routes,
  {
    props: {
      htmlHook(html) {
        const head = Helmet.rewind();
        html = html.replace('<head>', `<head>${head.title}${head.base}${head.meta}${head.link}${head.script}`);
        return html;
      },
    },
  },
  {
    htmlHook(html) {
      const head = Helmet.rewind();
      html = html.replace('<head>', `<head>${head.title}${head.base}${head.meta}${head.link}${head.script}`);
      return html;
    },
  }
);

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant