How to check whether an external resource loaded and load a local copy if it failed to load. See README.md