Skip to main content

style_delivery_script

Function style_delivery_script 

Source
pub fn style_delivery_script() -> String
Expand description

Returns an idempotent document-owned stylesheet installation script.

The stylesheet survives independent root removal and requires no asset fetch.

  • Complexity: O(stylesheet bytes) time and space.

ยงExamples

let script = adam_web_ui::components::style_delivery_script();
assert!(script.contains("createElement"));