Check if file exists but prevent 404 error in console from showing up [duplicate]

Seems like the answer is: No. Can’t avoid getting a 404 error in the console unless you kick off a call to a server-side script to check file existence.

Leave a Comment