Skip to content

Commit 7f173dd

Browse files
committed
feat: add id and strategy attributes to ad banner scripts for improved hydration.
1 parent 9a06f82 commit 7f173dd

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

components/ads/Banner160x300.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default function Banner160x300({ className }: AdProps) {
1313
return (
1414
<div className={className}>
1515
<Script
16+
id="banner-160x300-config"
17+
strategy="afterInteractive"
1618
type="text/javascript"
1719
dangerouslySetInnerHTML={{
1820
__html: `
@@ -27,6 +29,7 @@ export default function Banner160x300({ className }: AdProps) {
2729
}}
2830
/>
2931
<Script
32+
id="banner-160x300-script"
3033
type="text/javascript"
3134
src="//www.highperformanceformat.com/00a77b46f049fda248000bb1c591b2d6/invoke.js"
3235
strategy="afterInteractive"

0 commit comments

Comments
 (0)