I am wondering, is it possible to provide an alternative path for a file if it cannot be found from the original one? For example I provide an src which points to an external source, this should be the default src, but if it cannot be reached for some reason, then it should load the file from the source folder.
Example:
Original:
<script src="https://unpkg.com/swagger-ui-dist/swagger-ui-bundle.js"></script>
And if this cannot be loaded, then:
<script src="js/swagger-ui-bundle.js"></script>
So I could load the newest from the js file, or the default I have.
Thanks!