Avoid bug where JS is loaded when/where window/document aren't defined
Avoid bug where JS is loaded when/where window/document aren't defined

drcmda/dom-resize,KyleAMathews/element-resize-event,KyleAMathews/element-resize-event