I'm having a hard time phrasing the question - so there may be answers on Stackoverflow already - but I'm working with an API that provides image links to external URLS alongside other data in a JSON file. Unfortunately, some of the links no longer work.
My goal is to determine this in an if-statement and if the image doesn't load, don't load any of the other data either.
Here's the code I have attempted, but unfortunately, some of the items are still getting through:
Aucun commentaire:
Enregistrer un commentaire