optional poll for document resize