Window-events is a central window events handler, for scroll and resize. It will set just one scroll and resize listener, if at least one script needs it. At that point no new listeners will be set, and all events will be published
resize 1 and resize 2 should be called on end (debounce)
resize 3 should be throttled
scroll1 should be throttled
scroll2 should be debounced
Log: last ones appear at the top (try scrolling and resizing)