fixed debounce - it should be unique for every selector, otherwise it will work on window resize for the only last selector.
if parentSelector is provided, but there is no such parent for this element - use immediate parent. Otherwise there will be 0 height.