MCPcopy
hub / github.com/tensorflow/tfjs / addLoaderElement

Function addLoaderElement

e2e/benchmarks/browserstack-benchmark/index.js:500–507  ·  view source on GitHub ↗

* Add a loader element under the tab page. * * @param {string} tabId

(tabId)

Source from the content-addressed store, hash-verified

498 * @param {string} tabId
499 */
500function addLoaderElement(tabId) {
501 const surface = tfvis.visor().surface(
502 { name: 'Benchmark Summary', tab: tabId, styles: { width: '100%' } });
503 const loaderElement = document.createElement('div');
504 loaderElement.className = 'loader';
505 loaderElement.id = `${tabId}-loader`;
506 surface.drawArea.appendChild(loaderElement);
507}
508
509/**
510 * Remove the loader element under the tab page.

Callers 1

createTabFunction · 0.85

Calls 1

surfaceMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…