viewport height option, delay timeout fix, whitespace trim