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

workflow-dom

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

25 releases (9 breaking)

new 0.12.0 Apr 20, 2024
0.11.0 Feb 25, 2024
0.10.2 Dec 24, 2023
0.8.1 Nov 1, 2023
0.1.0 Sep 21, 2022

#469 in WebAssembly

Download history 486/week @ 2023-12-23 197/week @ 2023-12-30 370/week @ 2024-01-06 216/week @ 2024-01-13 538/week @ 2024-01-20 116/week @ 2024-01-27 83/week @ 2024-02-03 137/week @ 2024-02-10 142/week @ 2024-02-17 319/week @ 2024-02-24 83/week @ 2024-03-02 160/week @ 2024-03-09 85/week @ 2024-03-16 151/week @ 2024-03-23 188/week @ 2024-03-30 123/week @ 2024-04-06

563 downloads per month
Used in 14 crates (8 directly)

MIT/Apache

225KB
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

~17–33MB
~505K SLoC