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.
More Related Contents:
- How to replace plain URLs with links?
- Get all Attributes from a HTML element with Javascript/jQuery
- ES6 Object Destructuring Default Parameters
- How to disable scroll without hiding it?
- Add onclick event to newly added element in JavaScript
- Javascript “Not a Constructor” Exception while creating objects
- What is causing this error – “Fatal error: Unable to find local grunt”
- How to create dictionary and add key–value pairs dynamically?
- window.open() on a multi-monitor/dual-monitor system – where does window pop up?
- How to filter keys of an object with lodash?
- How to set Angular 4 background image?
- How to iterate javascript object properties in the order they were written
- For a push notification, is a websocket mandatory?
- Inspect the names/values of arguments in the definition/execution of a JavaScript function
- getElementById.contentDocument error in IE
- values not updated after an ajax response
- How to display selected image without sending data to server?
- jQuery vs. javascript? [closed]
- How to detect which device view you’re on using Twitter Bootstrap API?
- Javascript-Setting background image of a DIV via a function and function parameter
- Time complexity of JavaScript’s array.length
- Accessing iframe from chrome extension
- How to get the width of an svg:g element
- How to show fullscreen popup window in javascript?
- JS defineProperty and prototype
- Is it a bad practice to use jQuery in Angular? [closed]
- flot graph, use legend to turn on/off series
- JavaScript is in array [duplicate]
- Does “untyped” also mean “dynamically typed” in the academic CS world?
- Why can’t I use a Javascript function before its definition inside a try block?