[{"data":1,"prerenderedAt":267},["ShallowReactive",2],{"rule-trigger-overloaded":3},{"id":4,"title":5,"body":6,"breadcrumb":230,"coderail":237,"dateModified":256,"datePublished":256,"description":257,"extension":258,"meta":259,"navigation":260,"next":256,"path":261,"prev":256,"schemaType":262,"seo":263,"stem":264,"wide":265,"__hash__":266},"docs\u002Frules\u002Ftrigger-overloaded.md","Overloaded trigger firing 10+ tags",{"type":7,"value":8,"toc":220},"minimark",[9,16,54,59,74,78,81,85,101,105,130,134,192,196],[10,11,12],"p",{},[13,14,15],"strong",{},"Summary",[17,18,19,30,36,42,48],"ul",{},[20,21,22,25,26],"li",{},[13,23,24],{},"rule_id"," — ",[27,28,29],"code",{},"trigger-overloaded",[20,31,32,35],{},[13,33,34],{},"purpose"," — Detect triggers that fire 10 or more active tags simultaneously",[20,37,38,41],{},[13,39,40],{},"effect"," — Burst of JavaScript execution and network requests on a single trigger; increases Time to Interactive",[20,43,44,47],{},[13,45,46],{},"layer"," — container",[20,49,50,53],{},[13,51,52],{},"reversibility"," — non-destructive",[55,56,58],"h2",{"id":57},"what-fires-this","What fires this",[10,60,61,62,65,66,69,70,73],{},"The rule builds a map from each trigger ID to all active tags that reference it via ",[27,63,64],{},"firingTriggerIds",". Any trigger with 10 or more tags in that list is flagged. Consent-update triggers are excluded — patterns matching OneTrust, Cookiebot, ",[27,67,68],{},"consent.*update",", and ",[27,71,72],{},"OnetrustActiveGroups"," legitimately fan out to many tags by design. Paused tags are excluded. Flagged triggers are returned sorted by tag count, highest first.",[55,75,77],{"id":76},"why-it-matters","Why it matters",[10,79,80],{},"When one trigger fires 10 or more tags, the browser must initialize and execute all of them in a short window. Each tag that makes network requests adds DNS lookups, TCP connections, and response waits on top of JavaScript execution time. This extends Time to Interactive and competes with the page's own scripts. Built-in triggers like All Pages accumulate tags over time as teams add vendors without deferring any to later-stage triggers. Distributing load across DOM Ready and Window Loaded reduces the execution spike without removing tags.",[55,82,84],{"id":83},"example","Before \u002F after",[86,87,88,95],"compare",{},[89,90,92],"compare-col",{"label":91},"Before — overloaded",[10,93,94],{},"All Pages trigger fires 22 tags simultaneously: GA4 config,\n4 ad pixels, 3 remarketing tags, chat widget, heatmap,\nsurvey tool, 6 conversion tags, and 6 additional vendor scripts.\nAll execute in the same tick on every page load.",[89,96,98],{"label":97},"After — distributed",[10,99,100],{},"All Pages fires 4 critical tags (GA4 config, primary conversion).\nDOM Ready fires 6 tags (secondary analytics, form tracking).\nWindow Loaded fires 12 non-critical tags (chat, heatmap, survey,\nremarketing pixels). Total tag count unchanged; execution spread\nacross three trigger stages.",[55,102,104],{"id":103},"remediation","Remediation",[106,107,108,111,114,117,124,127],"ol",{},[20,109,110],{},"Identify the overloaded triggers from the finding and list all tags they fire.",[20,112,113],{},"Categorize each tag: must-fire-early (GA4 config, primary conversion) vs. deferrable (remarketing, chat, survey, heatmap).",[20,115,116],{},"Move deferrable tags to a later-stage trigger — DOM Ready fires after parse; Window Loaded fires after all resources load.",[20,118,119,120,123],{},"For tags with no page-interaction dependency, add a custom event trigger on a ",[27,121,122],{},"setTimeout"," (1–2 seconds) to further spread load.",[20,125,126],{},"For pixel-only tags with no client-side logic requirement, evaluate server-side GTM to remove them from the browser entirely.",[20,128,129],{},"Re-evaluate the container after changes and confirm the trigger tag counts drop below 10.",[55,131,133],{"id":132},"metadata","Metadata",[135,136,139,140,145,139,149,153,139,156,160,139,163,166,139,169,173,139,176,180,139,186,189],"dl",{"className":137},[138],"spec-list","\n  ",[141,142,144],"dt",{"id":143},"severity","Severity",[146,147,148],"dd",{},"high",[141,150,152],{"id":151},"tier","Tier",[146,154,155],{},"optimization",[141,157,159],{"id":158},"category","Category",[146,161,162],{},"quality",[141,164,165],{"id":46},"Layer",[146,167,168],{},"container",[141,170,172],{"id":171},"version","Version",[146,174,175],{},"1",[141,177,179],{"id":178},"effort","Effort",[146,181,182,185],{},[27,183,184],{},"2hr"," (about 2 hours)",[141,187,188],{"id":52},"Reversibility",[146,190,191],{},"non-destructive",[55,193,195],{"id":194},"see-also","See also",[17,197,198,206,213],{},[20,199,200,205],{},[201,202,204],"a",{"href":203},"\u002Fcategories\u002Fquality\u002F","Quality rules"," — other rules in this category",[20,207,208,212],{},[201,209,211],{"href":210},"\u002Fhealth-score\u002F","Health score"," — how this rule contributes to the score",[20,214,215,219],{},[201,216,218],{"href":217},"\u002Frules\u002F","Rules catalog"," — browse all rules",{"title":221,"searchDepth":222,"depth":222,"links":223},"",2,[224,225,226,227,228,229],{"id":57,"depth":222,"text":58},{"id":76,"depth":222,"text":77},{"id":83,"depth":222,"text":84},{"id":103,"depth":222,"text":104},{"id":132,"depth":222,"text":133},{"id":194,"depth":222,"text":195},[231,234,236],{"label":232,"href":233},"API Reference","\u002F",{"label":235,"href":217},"Rules",{"label":29},{"cards":238,"onpage":250},[239],{"title":240,"tabs":241},"Evaluate",[242,246],{"label":243,"language":244,"code":245},"cURL","bash","curl https:\u002F\u002Fdeveloper.tagmanifest.com\u002Fv1\u002Fevaluate-rule \\\n  -H \"Authorization: Bearer $TM_API_KEY\" \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -d '{\"rule_id\":\"trigger-overloaded\",\"url\":\"https:\u002F\u002Fexample.com\"}'\n",{"label":247,"language":248,"code":249},"MCP","text","User: Run trigger-overloaded on https:\u002F\u002Fexample.com\n\n# Tool call\n{\n  \"tool\": \"evaluate_rule\",\n  \"arguments\": {\n    \"rule_id\": \"trigger-overloaded\",\n    \"url\": \"https:\u002F\u002Fexample.com\"\n  }\n}\n",[251,252,253,254,255],{"id":57,"label":58},{"id":76,"label":77},{"id":83,"label":84},{"id":103,"label":104},{"id":132,"label":133},null,"A single trigger fires 10 or more tags simultaneously, creating a burst of network requests that can impact page performance.","md",{},true,"\u002Frules\u002Ftrigger-overloaded","TechArticle",{"title":5,"description":257},"rules\u002Ftrigger-overloaded",false,"lGgJMXNTGiDF35d0H5xhMG8R7Cw5qoy4toroSyQJDdE",1796069484392]