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.

  1. squared

  2. squared-base [1]

  3. squared-svg [2]

  4. framework [3]

  5. extensions

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]

ES2021
<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 a production environment. [4]

ES2021
<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 faster than ESM. It is also immediately available inside DevTools when issuing an arbitrary command.