[jweb] inside subpatcher does not load pages before showing

yaniki's icon

Dear Friends

I faced a small, but annoying issue - maybe you have a solution for that.

I my project I have a [jweb] object inside subpatcher. This [jweb] will not load the webpage before I open the subpatcher (in other words: before the [jweb] will be exposed).

So, when opening the project, I need to open the subpatcher so that jweb loads the page. However, I need this page to load "automatically" (and generate some data needed to initialise other parts of the project).

In the patch below I isolated the problem, but in my project it looks a bit different: the subpatch opens in the tab. However, the problem is exactly the same: until I open the tab, the pages will not be loaded.

I will be grateful for all your comments and ideas.

macOS 10.14.4 | Max 8.0.5

ps. The problem can be avoided by forcing the subpatcher to open before loading content, but for more complex projects this is not a convenient method.

Max Patch
Copy patch and select New From Clipboard in Max.

sylvest's icon

I'm facing the same issue.
readfile and reload are not affecting this behavior.
I'm basically using jweb for websocket communication, so no rendering.

I've found this workaround:
- for the patcher (call it "A") with the jweb object, set it to 'open in presentation'
- in the patcher hosting patcher A (call it "B"), host it as a bpatcher instead of directly

A bit more convenient than forcing a subpatcher open for my use case, but still cumbersome.
If anyone knows a solution to this, great.

yaniki's icon

Thank you, Sylvest.

Btw. I didn't tested yet, how [jweb] works in Max 8.1.4. Maybe this issue is fixed already?

sylvest's icon

Hi Yaniki, I can confirm this is still the behavior in 8.1.4.