Trying to use a pure JS approach to check if I have a valid JS image url. I am getting a warning that XMLHttpRequest is deprecated. What is a better way to do this?
XMLHttpRequest
The warning is probably because you are tyring to do a synchronous request.