I'm using Leaflet, and using OSM's tile.openstreetmap.org tile server. However, sometimes my application does not load the maps tiles. It seems OSM's servers are having some problems sporadically, which is out of my scope of fixing. So, my question:
Is it possible to wait an X amount of time for the tile server to load the requested tiles, before removing the tileLayer and replacing it with a tileLayer that usestrying to contact another URL for its tiles?