document.currentScript
`document.currentScript` returns the `<script>` element whose script is currently being processed.
ECMAScript 5
Full support for the ECMAScript 5 specification. Features include `Function.prototype.bind`, Array methods like `indexOf`, `forEach`, `map` & `filter`, Object methods like `defineProperty`, `create` & `keys`, the `trim` method on Strings and many more.
ECMAScript 2015 (ES6)
Support for the ECMAScript 2015 specification. Features include Promises, Modules, Classes, Template Literals, Arrow Functions, Let and Const, Default Parameters, Generators, Destructuring Assignment, Rest & Spread, Map/Set & WeakMap/WeakSet and many more.
JavaScript modules via script tag
Loading JavaScript module scripts (aka ES6 modules) using `<script type="module">` Includes support for the `nomodule` attribute.
JavaScript modules: dynamic import()
Loading JavaScript modules dynamically using the import() syntax
async attribute for external scripts
The boolean async attribute on script elements allows the external JavaScript file to run when it's available, without delaying page load first.
defer attribute for external scripts
The boolean defer attribute on script elements allows the external JavaScript file to run when the DOM is loaded, without delaying page load first.
Efficient Script Yielding: setImmediate()
Yields control flow without the minimum delays enforced by setTimeout
ECMAScript 5 Strict Mode
Method of placing code in a "strict" operating context.
document api: scripts
scriptprocessornode api
scriptprocessornode api: `audioprocess` event
scriptprocessornode api: buffersize
serviceworker api: scripturl
css at-rule: `@media`: `scripting` media feature
html element: script
html element: script: blocking
html element: script: crossorigin
html element: script: fetchpriority
html element: script: integrity
html element: script: language
html element: script: nomodule
html element: script: referrerpolicy
html element: script: src
html element: script: text
html element: script: type
html element: script: type: importmap
html element: script: type: module
headers http header: content-security-policy: script-src
headers http header: content-security-policy: script-src-attr
headers http header: content-security-policy: script-src-elem
headers http header: content-security-policy: script-src: external scripts with hash
headers http header: content-security-policy: script-src: source expression allowing webassembly execution
javascript built-in: intl
javascript built-in: map
javascript built-in: math
javascript built-in: nan
javascript built-in: set
javascript function
javascript function: get
javascript function: set
javascript operator: in
javascript operator: new
javascript statement: let
svg element: script
svg element: script: async
svg element: script: defer
svg element: script: type
svg element: script: type: `type='module'`
svg element: script: xlink:href
50 results found.