Skip to content

Timeout on first load when pre-rendering react components #617

@holgersindbaek

Description

@holgersindbaek

I have a small amount of react components that I'm pre-rendering on the server. Whenever I push my app to Heroku, I'll get a timeout the very first time I load the frontpage on the app. When I load the page again after that 30 seconds timeout, it loads fine.

I've turned caching off, so it hasn't got much to do with that. I'm using TheRubyRacer as my MRI.

I've also tried to turn off server side rendering, to make sure it's caused by server side rendering and I can confirm that it is server side rendering that that is causing this.

Why is that I get a timeout the very first time I load the frontpage of my website? Does the server javascript environment have to load the very first time a server side render occurs?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions