You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Preload a Monarch screen. This will load but not enable the screen. This is useful for content heavy screens that you wish to be able to show without having to wait for it load. This operation will be added to the queue if Monarch is busy.
53
53
54
54
**PARAMETERS**
55
55
*`screen_id` (string|hash) - Id of the screen to preload.
56
+
*`options` (table)
56
57
*`callback` (function) - Optional function to call when the screen is preloaded.
57
58
59
+
The options table can contain the following fields:
60
+
61
+
*`keep_loaded` (boolean) - If the `keep_loaded` flag is set Monarch will keep the screen preloaded even after a `hide()` or `back()` navigation event that normally would unload the screen.
62
+
58
63
59
64
## monarch.is_preloading(screen_id)
60
65
Check if a Monarch screen is preloading (via monarch.preload() or the Preload screen setting).
0 commit comments