From 6d8476a68db617eeaa6e622af66bb8a1af4af8e7 Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Mon, 9 Jan 2023 15:23:55 -0600 Subject: [PATCH] Update partytown dom check Look for partytown usage by checking if `script[type*='text/partytown']` is in the dom. --- src/technologies/p.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/technologies/p.json b/src/technologies/p.json index 0057bb544..5b72a92af 100644 --- a/src/technologies/p.json +++ b/src/technologies/p.json @@ -521,8 +521,10 @@ ], "description": "Partytown is a lazy-loaded library to help relocate resource intensive scripts into a web worker, and off of the main thread.", "icon": "Partytown.svg", - "js": { - "partytown.lib": "" + "dom": { + "script[type*='text/partytown']": { + "exists": "" + } }, "oss": true, "website": "https://partytown.builder.io/"