Skip to content
Discussion options

You must be logged in to vote

depends on which framework you're using:

  • if you're using next: on the server, probably in getServerSideProps or getStaticProps.
  • if you're using react-router v6.4, or react-location for routing: the provided loaders are a good point in time.
  • if you have nothing, so purely client side rendered app:
    • consider prefetching onHover of the link that takes you to the next page, if you now what that pages needs
    • for the first page, start prefetching before you call ReactDOM.render, if you know what data the first page will need.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iway1
Comment options

Answer selected by iway1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants