Added a new flag dom_wrap, to skip loading gritter msg in dom.