#dom #css #inject #script #web-apps

workflow-dom

DOM injection utilities for run-time injection of JavaScript and CSS

35 releases (14 breaking)

0.18.0 Sep 7, 2024
0.15.0 Jul 26, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.1.0 Sep 21, 2022

#543 in WebAssembly

Download history 856/week @ 2024-11-16 307/week @ 2024-11-23 379/week @ 2024-11-30 469/week @ 2024-12-07 268/week @ 2024-12-14 174/week @ 2024-12-21 187/week @ 2024-12-28 364/week @ 2025-01-04 289/week @ 2025-01-11 373/week @ 2025-01-18 515/week @ 2025-01-25 504/week @ 2025-02-01 431/week @ 2025-02-08 441/week @ 2025-02-15 629/week @ 2025-02-22 498/week @ 2025-03-01

2,103 downloads per month
Used in 15 crates (9 directly)

MIT/Apache

245KB
5K SLoC

workflow-dom

Part of the workflow-rs application framework.


Browser DOM manipulation utilities

github crates.io docs.rs license

Features

  • Dynamic (runtime) injection of JsvaScript modules and CSS data into Browser DOM
  • Optionally supplied callback gets invoked upon the successful load.

Combined with include_bytes!() macro this crate can be used to dynamically inject JavaScript and CSS files into the browser environment at runtime.

Dependencies

~13–29MB
~468K SLoC