Loading at startup best practices

#1

Hi guys,
At startup, If the new data is available backend side, I need to retrieve data and push it into local storage.

What is the best solution for this requirement?

  1. introduce the logic into splash screen page with loading.
  2. redirect the user into a new page (after splash screen) where I check if the data is available

Eventually, have you a quick example to implement this?

Let me know your feedbacks about this requirement.

Thanks in advance
Luca

#2

what kind of data that you are saving in local storage ?

#3

The backend returns a list of categories. I want to cache them in local storage for performance reason.