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. [4]

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

Tip

The traditional UMD namespaced global reference squared is the fastest to load and execute. ESM is the modern alternative but has some drawbacks when used with larger libraries. It is not recommended to use import maps outside of a development environment.