DrSensor / nusa

incremental runtime that bring both simplicity and power into webdev (buildless, cross-language, data-driven)
MIT License
4 stars 0 forks source link

Shadow root from remote resource #21

Closed DrSensor closed 1 year ago

DrSensor commented 2 years ago

Plain html

<render-scope src="widget.html">
  <img slot="fallback" src="spinner.gif">loading</img>
</render-scope>

HTML Module

<render-scope type="module" src="module.html">
  <template slot="fallback">

  </template>
</render-scope>
DrSensor commented 1 year ago

Rather than this, it's better to enhance #29 to support link/binding module/script into external/remote/server-rendered html