Solve browser showing empty html document issue