Removed polling code altogether and replaced with even listeners for resize/scroll/load