ampproject / ampproject/worker-dom

Question: Would `worker-dom` be suitable for 3p scripts like trackers/analytics/captcha etc

Open
#849 1 comment 0 reactions 1 assignee Claimed by @kristoferbaxter View on GitHub
question
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

Hi!
I am curious to know if `worker-dom` has all the required DOM API coverage to allow 3p scripts like `trackers/analytics(ga, gtm)/captcha(recaptcha)` etc. These scripts often introduce long tasks on the main thread, leading to janks and delay in input.
It would be great if these scripts could run in `worker-dom` and help avoid the main thread long tasks.

Also, if this is already put in production anywhere then links to those pages would be great help.
Thanks!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.