Adds a <link> element to the document head. Removed when the rendering context is torn down.
<link>
No-ops if something else already added the link with the same URL.
Optional
import { addLink } from 'reactiveweb/document-head';<template> {{addLink "https://my.cdn.com/asset/v1.2.3/file/path.css"}}</template> Copy
import { addLink } from 'reactiveweb/document-head';<template> {{addLink "https://my.cdn.com/asset/v1.2.3/file/path.css"}}</template>
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.