Is it possible to check if a file / page exists using JavaScript, but prevents a 404 error from appearing in the console?
The answer seems to be: None. It is impossible to avoid a 404 error in the console unless you start calling the server side of the script to verify the existence of the file.