APP page loading and timeout processing

In the era of mobile Internet, the speed of APP page loading directly affects the user experience. APP page loading and timeout processing have become important links that cannot be ignored in mobile application development. Therefore, when we design the user-side APP of the Bluesky Gas Station, we also need to consider the problems of page loading and timeout processing.

The speed of page loading is affected by many factors, such as network environment, device performance, and the amount of data to be loaded. Our APP can load data in seconds under a good network environment, and provide a retransmission and waiting mechanism under a poor network environment.

When users use APP, they usually need to use the pull-down refresh function. The user clicks the page, pulls down the page, pulls down to the pull-down refresh threshold, and releases the page. After these states are completed, we need to refresh the page. To achieve pull-down refresh, the APP needs to resend the data request to the server, obtain the latest data, and load it on the page. In order to improve the user experience and reduce the anxiety of waiting for refresh, we need to provide a series of text and animation prompts.

Refresh after loading the APP page

The above pull-down refresh function facilitates users to refresh data, but there are also problems. When users use the APP in a poor network environment, they may not be able to obtain data from the server, causing the page to be in a loading state. This problem also greatly affects the user experience. For this reason, we have added a timeout mechanism when the page is loaded.

The page is in a refresh state

The logic of the timeout mechanism is as follows: When the user pulls down to refresh the page, the timer starts working. When the timer reaches the preset refresh timeout, we will prompt the user that the network error is empty and the data loaded on the page is empty.

There are two situations here. The first is that the user has no network. We can judge it by the request failure. At this time, the user will be prompted with a network error immediately, and the page refresh state will end, without waiting for the timer to reach the preset refresh timeout time.

The second is that the user’s network environment is poor, resulting in a high communication delay between the APP and the server, but the connection is not directly disconnected. At this time, the APP will wait for the timer to reach the preset timeout time.

If the data is loaded successfully within the timeout time, the data will be displayed on the page. If the data acquisition fails within the timeout time, the user will be prompted with a network error, and the page loading state will end.

Data is displayed on the page after successful loading

In summary, through the mechanism of page loading and loading timeout, the user’s experience is improved, the stability of the application is enhanced, and the performance is optimized, thereby improving user satisfaction.

Update cookies preferences

Get a Quick Quote!

x

    Get a Quick Quote!

    x