I am using some JQuery functions that are accessible on the web. For example : ajax.aspnetcdn.com
My web application runs on an Intranet. However I am accessing the plugins that are located on the Internet.
Everything works great, however if the website becomes disconnected from the Internet, the JQuery functions at aspnetcdn.com will not be found. In that event an exception will be thrown in my call to the JQuery code, and I will get a "object not found" error message for the function being called. So using JQuery or Java Script how can I check if the function in not defined before attempting to call it?