shama / on-load

On load/unload events for DOM elements using a MutationObserver
113 stars 19 forks source link

Assert document.body is available #29

Closed toddself closed 7 years ago

toddself commented 7 years ago

We can't use on-load prior to DOMContentAvailable so we should assert that document.body exists prior to trying to do anything with it.

toddself commented 7 years ago

:package: 3.2.3