DriveLoader Logo
DriveLoaderv1.2.0
Docs/Core Utilities & Diagnostics

Core Utilities & Diagnostics

Low-level functions like resolveDriveImage, analyzeDriveUrl, and smart prefetch.

Overview

DriveLoader exports its internal diagnostic tools. Use analyzeDriveUrl() to classify links and get format warnings.

Code Example

utilities.tsx
1import { analyzeDriveUrl, prefetchAudio } from '@driveloader/react';
2
3const diag = analyzeDriveUrl(url);
4await prefetchAudio(url);

Best Practices

  • Prefetch heavy assets (like videos or high-res images) on hover to eliminate loading spinners on click.

Related APIs