Suppressing 404s in retina.js library
问题 We use the js lib retina.js which swaps low quality images with "retina" images (size times 2). The problem is, that retina.js throws a 404 for every "retina" image which can't be found. We own a site where users can upload their own pictures which are most likely not in a retina resolution. Is there no way to prevent the js from throwing 404s? If you don't know the lib. Here is the code throwing the 404: http = new XMLHttpRequest; http.open('HEAD', this.at_2x_path); http.onreadystatechange =