This is what we had, but it wasn't responding quickly enough, so the site was hanging despite the fallback.
However say for content-based sites, the theoretical ideal is that the content should be delivered and usable without the inclusion of fooLib.js (which folks say should even be included as late as just before </body>), so a delay from a CDN would not necessarily cause any apparent "hang". Again this is the ideal and admittedly I've never got it right.
A simple solution would be to just link to a self-hosted version of the lib.