Skip to main content

insert_stylesheet

Function insert_stylesheet 

Source
pub fn insert_stylesheet(href: &str)
Expand description

Insert a stylesheet <link> element into the head of the current document.

The stylesheet is deduplicated within each document: calling this multiple times with the same href (or rendering a Link component with the same href and rel="stylesheet") only inserts the link once per document.