Core Utilities & Diagnostics
Low-level functions like resolveDriveImage, resolveDriveVideo, analyzeDriveUrl, and prefetch.
utilities.tsx
| 1 | import { analyzeDriveUrl, prefetchVideo } from '@driveloader/react'; |
| 2 | |
| 3 | const diag = analyzeDriveUrl(url); |
| 4 | await prefetchVideo(videoUrl); |
Usage Notes
Use analyzeDriveUrl() for link troubleshooting and prefetch() for preloading images or videos.
