I serve my site with mywebsite.com. I host images on flickr, so all images are uploaded to the user browser via flickr requests. Many of my website users access mywebsite.com from corporate networks that block access to flickr.com. This means that users get very annoying blank placeholders instead of images. I have the same problem with a Facebook button as a button. This makes my site very unattractive to such users.
Is there a way to run a client side script that will check the availability of flickr.com, facebook.com, etc. If not, I can change the href attribute of the image to download from an alternative source, or replace the standard image, explaining that their network is blocking access. I could also remove the Facebook button.
I thought the XML query would do the trick, but then I would name cross-domain problems, which I think. I guess I could also set up a proxy server for working with images, but I do not want to do this; the idea behind this is that flickr takes bandwidth.
TL; DR: how to determine if flickr.com is accessible from a user’s browser using client-side technology.
javascript html scripting proxy
planetjones
source share