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

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

#238 in WebAssembly

Download history 676/week @ 2024-07-20 557/week @ 2024-07-27 383/week @ 2024-08-03 249/week @ 2024-08-10 739/week @ 2024-08-17 573/week @ 2024-08-24 784/week @ 2024-08-31 1461/week @ 2024-09-07 482/week @ 2024-09-14 420/week @ 2024-09-21 460/week @ 2024-09-28 394/week @ 2024-10-05 449/week @ 2024-10-12 633/week @ 2024-10-19 495/week @ 2024-10-26 276/week @ 2024-11-02

1,900 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–27MB
~423K SLoC