Skip to content

A modern and easy to use dashboard. 80+ integrations. 20K+ icons built in. Authentication out of the box. No YAML, drag and drop configuration.

519 B
Raw Blame
"use client";

import type { WidgetKind } from "@homarr/definitions";
import { loadWidgetResources } from "@homarr/widgets/manifest";

// This sibling can hydrate before pending widget data. Start only the visible
// board's retryable, deduplicated module imports without awaiting the results.
export const WidgetResourcePreload = ({ kinds }: { kinds: WidgetKind[] }) => {
  if (typeof window !== "undefined") {
    for (const kind of kinds) void loadWidgetResources(kind).catch(() => undefined);
  }
  return null;
};