Bind resize and scroll events only on demand.