def normalize_url(url, loader_context=None):
    """Expand URL fragments."""
    try:
        return loader_context['response'].urljoin(url)
    except Exception:
        pass
    return 'http:' + url if url.startswith('//') else url
