Avoids rerendering of innerHTML if content is not changed