Hello guys , let me explain what i need.
I would like to dynamically load en entire scene into an existing frontend application.
I should be able to interact inside the scene.
The scene should acept some hook or function to be excecuted, if not possible to push some route.
Im thinking something similar to payment gateways iframes.
I would like to avoid installing bbjs dependencies into existing app.
Any ideas ?
Regards.
Hi Leanrdo,
I recommend checking out a fairly simple package FFLATE, I used to speed up loading and significantly compress my app. During the build process, it creates a zip file, and upon loading, I access resources via blobs. My entire file structure maps to these blobs, so without changing any code, the app stops requesting files from the server and instead retrieves them from the browser’s memory after a single download.
Upd:
Oh, it looks like I slightly misunderstood your question. I thought you wanted to load the entire application at once, but you were asking about dynamically loading the scene during runtime.
I believe you can also load the scene progressively by sending new data via WebSockets. For instance, you could use MQTT to stream updates or trigger the loading of specific assets as needed while the user is interacting with the scene.