You can create an <img> tag that points to an existing image in an external domain.
If the onerror event fires, the image and possibly the entire site do not work.
If it fires after 5 seconds or so, it probably expired, so the whole site is likely to be unavailable.
source share