Browser
ES2018
Download
android
chrome
vdom
vdom-lite
Usage
Library files are in the /dist folder. A minimum of two files are required to run the application.
Usable combinations: 1-2-4 + 1-2-4-5 + 1-2-3-4-5 + 1-vdom-lite
File bundles for common combinations are available in the /dist/bundles folder and do not require a call to setFramework.
ES Modules
Bundle
A single file with no exports outside of the core methods. [4]
ES2022
<script type="module">
import { parseDocument } from "https://unpkg.com/squared/dist/android.mjs";
<script>
Import maps
Possibly hundreds of files with all exports and core methods. It is not recommended to be used in production. [4]
ES2022
<script type="importmap">
{
"imports": {
"squared/": "https://unpkg.com/squared/"
}
}
</script>
<script type="module">
import { parseDocument } from "squared/android.js";
<script>
Tip
The traditional UMD namespaced global reference squared will load and execute much faster than ESM. It is also fully available inside DevTools to issue arbitrary commands without typing out every import path.