I would like to know if it is possible to perform a callback if a CDN is offline the system uses the local files.
Ex: I use the Fontawesome CDN but if the user runs out of the internet or the CDN goes offline, it is possible to create a callback for the system to use the local files.
Obs. The system should give preference to the use of CDN if it is online and the user has internet.