Update document according to lazily-required