Images are not loading correctly
when i changed the code to cycle images from placeimg.com, the profile image does not change when i reload page. It seems the code is correct but what am i doing wrong?
<img src="http://placeimg.com/400/400/people" alt="Drawing of Jane Smith" class="profile-image">
Steven Parker155,584 Points
Your browser may be displaying a cached image instead of fetching a new one.
document.querySelector("img").src += "?nocache=" + Math.random();
Note that this particular version only affects the first image on the page.
Thank you for your help, TeamTreehouse is remarkable!
Thanks! That helped me too :)
Thank you soo much. I was also having same problem.