If you have a page which contains JavaScript content but it returns a redirect or an error code, Google will not spend time rendering the content. For example, if you use JavaScript on a 404 page to display an error message or links. With redirects, Google does not need to render the content in order to follow the redirect to the new page.
The post Google Will Not Render JavaScript Content if The Page Returns a Redirect or Error Code appeared first on Lumar.