How to have multiple d3 window resize events
You need to namespace the listeners e.g. on('resize.one')
and on('resize.two')
From the API Docs:
If an event listener was already registered for the same type on the selected element, the existing listener is removed before the new listener is added. To register multiple listeners for the same event type, the type may be followed by an optional namespace, such as "click.foo" and "click.bar".