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.

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.

ES2021
<script type="module">
  import { parseDocument } from "https://unpkg.com/squared/android.js";
<script>

Tip

Fastest and easiest to use is the traditional (UMD) non-modular namespaced global reference squared. ESM is more appropriately used when bundled into one application (web) and not used with import maps (development).