4 ms·
It saddens me that ES6 modules don't have fallbacks built in. You do: import 'http://developer.yahoo.com/modules/yui3.js' as YUI; wish it was: import
by MatthewPhillips 13y ago
It saddens me that ES6 modules don't have fallbacks built in. You do:
import 'http://developer.yahoo.com/modules/yui3.js' as YUI;
wish it was:
import ['http://developer.yahoo.com/modules/yui3.js', '/libs/yui3'] as YUI;
- TazeTSchnitzel 13y agoSend the committee an email suggesting this improvement. They might not yet have considered it.
- numbsafari 13y agoBased on comments above, it might also be helpful to configure a timeout of some type. So if, for example, the CDN is suffering from a DDOS or other latency inducing issue, you can force a fallback to your own server.
- SoftwareMaven 13y agoI think the notion of "fallbacks" (and the sibling comment's "timeouts") are extremely specific to the web. However, there is some prior art on this subject in the python world: try: import simplejson as json except ImportError: import json So it might be worth contacting the committee and expressing that.