https://api.jquery.com/jQuery.getScript/#jQuery-getScript
I use the code below to set a fallback script in case I get a 404 or similar on my primary script.