Dom APIs saved in map immediately after rendering