diff --git a/crates/obscura-js/js/bootstrap.js b/crates/obscura-js/js/bootstrap.js index 65ffaa1..81807d9 100644 --- a/crates/obscura-js/js/bootstrap.js +++ b/crates/obscura-js/js/bootstrap.js @@ -295,11 +295,127 @@ function _resolveResourceUrl(src) { } catch(e) { return src; } } -// A dynamically-inserted must fetch and fire -// load/error so frameworks awaiting the link's onload (Promise.all of lazy -// CSS + JS, antd/bootstrap loaders, etc.) resolve instead of hanging forever. -// There is no layout engine to apply the CSS, but the load-event contract -// matches Chrome. Issue #409. +const _linkedStylesheetNodes = new WeakMap(); + +// A fetched sheet becomes an inline