When a user navigates to a new screen within an app, the screen content (ie, images, text, components) will be loaded and shown to them. Once the screen has finished loading it will then run any custom code that you wish. To do this you can add JavaScript to a screen by using the “This Screen” tab in the Developer Options (get more details on adding code to your app here).

For a detailed understanding of app, screen and code loading orders please see the Developer Documentation here.

Related topics

To run code when an app is opened you can use the Global tab, see this article.

To run code when an app is opened the first time, see this article.