Synchronous JavaScript for image validation

This function will return an image link if the url passed in is valid, otherwise it will return the no-image text. This is synchronous ajax, which will block your UI, but I use it for popover generation with bootstrap js, and it works just fine.


Leave a Reply

Your email address will not be published. Required fields are marked *