datadog-ux-utils Documentation - v1.0.0
    Preparing search index...

    Function isConstrainedNetwork

    • Returns true if current network conditions meet the "constrained" heuristics. This is a fast, synchronous check based on the last observed snapshot.

      Returns boolean

      if (isConstrainedNetwork()) {
      // Skip auto-playing HD video, fetch smaller images, etc.
      enableDataLightMode();
      }