Defer DOM rendinginto into setTimeout