You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: core/components/scripts/README.md
+24-49Lines changed: 24 additions & 49 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,36 +4,39 @@ This directory contains components for rendering BigCommerce scripts using Next.
4
4
5
5
## Components
6
6
7
-
Both `HeaderScripts` and `FooterScripts` are exported from a single `scripts.tsx` file that follows DRY principles by sharing common logic through an internal `ScriptRenderer` component.
8
-
9
-
### HeaderScripts
10
-
Renders scripts that should be placed in the `<head>` tag with `strategy="afterInteractive"`.
11
-
12
-
### FooterScripts
13
-
Renders scripts that should be placed before the closing `</body>` tag with `strategy="lazyOnload"` for better performance.
7
+
### ScriptManagerScripts
8
+
A single component that renders scripts with configurable strategy. Location filtering is now handled at the GraphQL level, simplifying the component logic.
0 commit comments