Revert "Removing the debouncing.  Makes the resize code use the id for elements, and adding an id to the viewport."

This reverts commit 0cb14c652ed660a93eebfaf190c81da456492816.