vanilla-beans
Version:
Thin layer on top of HTML and DOM API, dramatically simplify development of SPA using Vanilla Js.
26 lines (19 loc) • 561 B
HTML
<html>
<head>
<script type="module">
import loadVanillaBeans from "../../lib/loader/load-vanilla-beans.mjs"
console.time('1')
loadVanillaBeans('./resources/tree/root.htm', function (factory) {
console.timeEnd('1')
console.log('Final ready 1')
console.time('2')
factory.with({})
.create('root')
.beanMount(document.body, 0)
console.timeEnd('2')
})
</script>
</head>
<body></body>
</html>