From 7be62fe38acf326b04315309218c09810f5e7b23 Mon Sep 17 00:00:00 2001 From: Nishu Goel Date: Tue, 31 Aug 2021 03:19:57 +0530 Subject: [PATCH] Javascript 2021 - Web component metric fix (#231) * capture number ajax requests * add custom metrics to Javascript topic * update metrics for webcomponents, shadow DOM, request protocols * addadd memory, content type metric * script tag properties * noscript tags * refactor * wcustom_element metric exits in has_shadow_root * add webcomponent_spec metric add charset,language Co-authored-by: Pankaj Parkar * add async_and_defer, defer_without_src * add inline script metric * change attributes to hasAttribute * fix web_component metric Co-authored-by: Max Ostapenko Co-authored-by: Pankaj Parkar --- custom_metrics/javascript.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_metrics/javascript.js b/custom_metrics/javascript.js index 0a7eb85e..b86d68a0 100644 --- a/custom_metrics/javascript.js +++ b/custom_metrics/javascript.js @@ -57,7 +57,7 @@ return JSON.stringify({ 'template': template.map(getNodeName) } return web_component_specs - }), + })(), script_tags: (() => { let script_tags = Array.from(document.querySelectorAll('script'));