• Adds a <link> element to the document head. Removed when the rendering context is torn down.

    No-ops if something else already added the link with the same URL.

    Parameters

    • url: string | (() => string)
    • Optionalattributes: HTMLLinkElement

    Returns void

    import { addLink } from 'reactiveweb/document-head';

    <template>
    {{addLink "https://my.cdn.com/asset/v1.2.3/file/path.css"}}
    </template>