Script

Monster.DOM.Resource. Script

This class is used by the resource manager to embed scripts.

You can call the method via the monster namespace new Monster.DOM.Resource.Script().

<script type="module">
import {Monster} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/monster.js';
new Monster.DOM.Resource.Script()
</script>

Alternatively, you can also integrate this function individually.

<script type="module">
import {Script} from 'https://cdn.jsdelivr.net/npm/@schukai/monster@1.30.0/dist/modules/dom/resource/script.js';
new Script()
</script>

Constructor

# new Script()

A Resource class

Since:
  • 1.25.0

Members

# defaults

Properties

Methods

# (static) getURLAttribute() → {string}

Returns:
Type
string

# create() → {Monster.DOM.Resource.Script}