Use xhr onload/onerror