The element fetches widget.html on page load. Minu injects the response
into its inner minu-content target and hides the loader when the request finishes.
minu.init() finds the element because it has minu-get.minu-trigger="load" fires the request immediately.minu-target, so Minu picks the inner [minu-content] element.innerHTML.[minu-loader] is shown during flight and hidden afterward.<div minu-get="widget.html" minu-trigger="load">
<div class="loader" minu-loader>Loading…</div>
<div minu-content></div>
</div>
<script src="/dist/minu.min.js"></script>
<script>minu.init();</script>
| Order | Target |
|---|---|
| 1 | minu-target="selector" |
| 2 | First [minu-content] inside the trigger element |
| 3 | The single [minu-content] on the page |
| 4 | The trigger element itself |