File: LoaderUtils.md | Updated: 11/15/2025
A class with loader utility functions.
Extracts the base URL from the given URL.
url | The URL to extract the base URL from.
---|---
Returns: The extracted base URL.
Resolves relative URLs against the given path. Absolute paths, data urls, and blob URLs will be returned as is. Invalid URLs will return an empty string.
url | The URL to resolve.
---|---
path | The base path for relative URLs to be resolved against.
Returns: The resolved URL.