Skip to content
Sid Vishnoi edited this page Oct 13, 2021 · 5 revisions

document.respec

When ReSpec is loaded, it immediately adds a respec object to the document object which contains following properties:

document.respec.isReady

This property returns a Promise, which resolves when ReSpec finishes all its processing. This promise is useful if you need to be notified when ReSpec has finished doing its work - and you want to do some additional work.

The following example shows how to use document.respec.isReady.

<script>
  // Wait until resources have loaded, including ReSpec
  document.addEventListener("load", function () {
    document.respec.isReady.then(function () {
      // Do things
    });
  });
</script>

Guides

Configuration options

W3C Configuration options

Linter rules

Internal properties

Handled by ReSpec for you.

Special <section> IDs

HTML elements

Custom Elements

WebIDL

HTML attributes

CSS Classes

Special properties

Clone this wiki locally