0

I ran into the problem that the prerender does not always work. There is one page where the prerender does not always work; sometimes it just returns a piece of broken code, not even reaching the body. Application in React.

enter image description hereenter image description here

In the screenshot there are 2 identical requests to the page with userAgent=googlebot, it should process the pre-render and return the generated html page, but it does not always do this. But there is no such problem on other pages, and this page works great and passes all tests. What could be the reason? Thank you very much in advance for any help

I tried removing Antd components, this affected the loading, more elements began to load, but still the page rendering was interrupted due to something

3
  • Problems like these often occur in places where the code's behavior can vary based on an external factor (like an awaited web request done before rendering). Can you share more code? Commented Jul 10, 2024 at 13:31
  • you need backend of frontent part? on whose side might the problem be? Commented Jul 10, 2024 at 13:40
  • Anything prerendered. Most importantly, the point where prerendering breaks (if it does). Commented Jul 10, 2024 at 14:06

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.