I am using CasperJS to scrape some items, so I can't get on the page early enough to add load and error events on img tags. I would also prefer to not have to do a new XHR request for each image to determine it's validity.
Is there any way to select an image tag and determine if there is an image actually there or if it is not in which the alt text is displayed? JS only, after the page is fully loaded.
/ EDIT
Not sure why this was marked duplicate when I am specifically asking if there is a way to do this without another network request. The above question has answers that require additional network requests.