dom before full program