You can wrap the image in a noscript tag:
<noscript>
<img src="https://stackoverflow.com/questions/1667868/foo.jpg"/>
</noscript>
All browsers that has JavaScript enabled will ignore the image tag so the image won’t load.
More Related Contents:
- Fade animation while scrolling
- Local file access with JavaScript
- Fetch: POST JSON data
- What’s the effect of adding ‘return false’ to a click event listener?
- What does a script-Tag with src AND content mean?
- How to avoid bind or inline arrow functions inside render method
- Detect rotation of Android phone in the browser with JavaScript
- Proper way to wait for one function to finish before continuing?
- How do you log all events fired by an element in jQuery?
- Add/remove class with jquery based on vertical scroll?
- How can I close a window with Javascript on Mozilla Firefox 3?
- Use functions defined in ES6 module directly in html
- get keys of json-object in JavaScript [duplicate]
- How to quickly clear a JavaScript Object?
- Force download a pdf link using javascript/ajax/jquery
- Callback function example
- How to reach the element itself inside jQuery’s `val`?
- Literal notation VS. constructor to create objects in JavaScript [duplicate]
- Conditional comment for ‘Except IE8’?
- Javascript Convert Date Time string to Epoch
- How can I detect shift + key down in javascript? [duplicate]
- Joining Flattened Data
- How do I unset an element in an array in javascript?
- Subtracting long numbers in javascript
- Precedence: Logical or vs. Ternary operator
- How to Bootstrap navbar static to fixed on scroll?
- How can I detect a Scrollbar presence ( using Javascript ) in HTML iFrame?
- Javascript: convert a (hex) signed integer to a javascript value
- How to write a simple jQuery plugin [closed]
- How to convert Moment.js date to users local timezone?