MCPcopy Create free account
hub / github.com/react/react / loadStylesheetsFrom

Function loadStylesheetsFrom

packages/react-dom/src/__tests__/ReactDOMFloat-test.js:381–387  ·  view source on GitHub ↗
(root, hrefs)

Source from the content-addressed store, hash-verified

379 }
380
381 function loadStylesheetsFrom(root, hrefs) {
382 const event = new window.Event('load');
383 const nodes = root.querySelectorAll('link[rel="stylesheet"]');
384 resolveLoadables(hrefs, nodes, event, href => {
385 Scheduler.log('load stylesheet: ' + href);
386 });
387 }
388
389 function errorStylesheets(hrefs) {
390 const event = new window.Event('error');

Callers 2

loadStylesheetsFunction · 0.85

Calls 1

resolveLoadablesFunction · 0.85

Tested by

no test coverage detected