shama / on-load

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

Allow on-load to load in the <head> tag #28

Closed bcomnes closed 7 years ago

bcomnes commented 7 years ago

This prevents the observer from trying to attach before there is a body. This would occur when loading on-load from a non-deferred script tag in the head.