exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
997 stars 117 forks source link

Can document.createElement('script'); be used? #1414

Closed Palmer-JC closed 5 years ago

Palmer-JC commented 5 years ago

Just a quick question, can script files be added in code for Exokit? There is a project that I use which does this. I also might wish to do this as a way to bring in things off the net, which were not included in the APK.

The stuff is primarily data, but if I gotta write code to serialize stuff no matter what, might as well write code to avoid writing loader code. Strangely, this is actually much more readable to a programmer. Uglifiable even.

avaer commented 5 years ago

Yes, Exokit just follows HTML spec. It can load both local and remote files via <script src=>.