Our primary goal is to make the web page load as quickly as possible for the user. When loading a script, the browser can't continue on until the entire file has been loaded. Thus, the user will have to wait longer before noticing any progress.
If you have JS files whose only purpose is to add functionality.
for example, After a button is clicked...
June 30, 2016
June 17, 2016
How to Show Alternate Image if Source Image is Not Found
The simple way to solve the problem-
By set the another image path in onError attribute of image, we resolve the problem. When the source image is not found then onError event fire and then it change source with another image. Use image tag described as below-
<img src="imageNotFound.jpg" alt="Image not found" onError="this.src='alternateImage.jpg';"...
Subscribe to:
Posts (Atom)