developit / developit/undom

Using this in the browser?

Offen
#21 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
JavaScript
Sterne
690
Forks
25
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Could there be a viable use case for using undom in the browser, to have a DOM-like API, but avoiding the performance cost of the real DOM?

Suppose, for example, we take something like A-Frame that gives us Custom Elements, but the purpose of those elements is to render to WebGL, and we actually don't need any DOM rendering. A-Frame is using DOM just for state management and as a component system, which makes it compatible with all the gazillion libraries that work with DOM (React, Vue, Angular, etc), making it possible to write declarative 3D WebGL scenes powered by Three.js under the hood.

Would it be possible to by-pass the real DOM and use undom with A-Frame, for example, in order to possibly gain a performance improvement from using a pure-JavaScript DOM? For example, would it be possible to use React and A-Frame in the browser, and actually render to WebGL? It would be interesting to see how this can improve performance, if it is possible.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.