In this example the video feeding the VideoTexture is added to the DOM.
Is it necessary for it to be in the DOM? I played around with the example, and found that it at least seems to not be the case. The example works just as well if the video element isn’t in the DOM, but I’m fearing a scenario where the browser is at some point low on resources or something like that and then finding a playing video and figuring it can get rid of it since it’s not in the DOM.
In my app I need to use a VideoTexture and have some limitations where I must not have its source in the DOM, so I need to be sure I can rely on it being 100% OK.
When a web page is loaded, the browser creates a Document Object Model of the page, which is an object oriented representation of an HTML document that acts as an interface between JavaScript and the document itself. This allows the creation of dynamic web pages,[12] because within a page JavaScript can:
add, change, and remove any of the HTML elements and attributes change any of the CSS styles react to all the existing events create new events"