Is there any way to do a preloading of a scene overlay?

Hello friends!

Is there any way to do a preloading of a scene overlay?
I tried using composer.loadScene and then showOverlay, but I did not succeed.

Within this scene, I need to load a url. It would be great if you could do this using the same behavior of loadScene with gotoScene.

Example:

composer.loadScene('scenes.dynamic', false, {params= {local= 'delivery'}, isModal= true}) timer.performWithDelay(3000, function() composer.showOverlay('scenes.dynamic') end)

A composer Scene Overlay is always attached with its Parent Scene.

You cannot preLoad any of the Overlay Scene, before its parent scene exist in memory.

Thus if you a problem with loading URL with overlay, it is understood it will take the time to load that Markup. Thus to avoid this misbehavior you can do the following:

1- Create a webView & load the actual Url, you want to show.

2- Create another webView & load the markup stored locally.

3-After some seconds time, remove the webView which uses local markup html.

4- Thus between this time the webView pointing to actual URL will their loaded with html.

Note: I did not try this , but i Hope it will work, let me know.

-Assif

Why don’t you try using scene:create of the overlay scene for loading?

A composer Scene Overlay is always attached with its Parent Scene.

You cannot preLoad any of the Overlay Scene, before its parent scene exist in memory.

Thus if you a problem with loading URL with overlay, it is understood it will take the time to load that Markup. Thus to avoid this misbehavior you can do the following:

1- Create a webView & load the actual Url, you want to show.

2- Create another webView & load the markup stored locally.

3-After some seconds time, remove the webView which uses local markup html.

4- Thus between this time the webView pointing to actual URL will their loaded with html.

Note: I did not try this , but i Hope it will work, let me know.

-Assif

Why don’t you try using scene:create of the overlay scene for loading?