When an end-user starts a new browser session, OutSystems Platform fetches the static resources the application needs. The browser caches these resources, thus avoiding a roundtrip to the server when they are needed.
You can enable resource prefetching for each application, on the environment management console.
In this example we already have a Directory application to manage employee information. To enable resource prefetching for this application, do the following:
To activate the changes, republish the application by clicking the 'Publish' button. And that's it! From now on, the application prefetches the resources, and displays a progress bar.
Once the resources are stored in the browser cache, your application will navigate faster between screens.
This functionality is customizable per environment. After deploying your application to another environment, you need to enable resource prefetching for the application version running on that environment.
When the 'Enable Resource Prefetching' setting is enabled, the following happens.
When an application module is published, OutSystems Platform determines which static resources can be prefetched.
The following files are prefetched:
Customizing the Load Screen when Prefetching Resources