Workers now has a streaming HTML modification API. Previously you had to parse the whole DOM (using a pure-JS library), modify, and serialize again. Our streaming API only invokes JavaScript for the elements you want to change and streams the rest through.https://blog.cloudflare.com/html-rewriter-beta/ …
-
Show this thread
-
Replying to @KentonVarda @eastdakota
are there any plans to OSS the implementations of these interfaces and/or standardize them? service workers in general could make use of this API.
1 reply 0 retweets 2 likes -
Replying to @devsnek @eastdakota
Great question!
@slightlylate do you think the standards people / browsers would be interested?3 replies 0 retweets 1 like -
Replying to @KentonVarda @devsnek and
Update: We've now open-sourced our implementation:https://github.com/cloudflare/lol-html …
1 reply 2 retweets 11 likes
Whoa
2:05 PM - 29 Nov 2019
0 replies
0 retweets
2 likes
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.