One great thing about Frontity is that a lot of the content is pre-fetched into the state so page transitions are virtually instant. Sometimes, however, the content is not already in the state and Frontity must fetch it from the WordPress REST API.
Doing this is not instant. You can see this by selecting the About Us menu option. Depending on your network speed you may notice a slight delay and the content area of our page remains empty.
If you're not noticing this delay you could try emulating a slow network connection in the network tab of your browser's Dev Tools.
Also don't forget to reload the home page so that the state is cleared and refreshed.
Whenever there's a delay such as occurs while data is being fetched it's a good idea to indicate to the user that something is actually happening, so let's add a <Loading> component.
Create a new file in the components directory and call it loading.js. Add the following code: