Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Add img|creative height & width attribute
Browse files Browse the repository at this point in the history
This will help reserver the correct space for the given creative/ad and helps prevent issues with cls  & lighthouse scoring.
  • Loading branch information
B77Mills committed Oct 15, 2024
1 parent 7347f36 commit 423de3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/marko-web-mindful-ads/components/render.marko
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $ /** @type {import("../utils/fetch-ads").MindfulWebsiteBannerCreative} **/
data-unit-id=unit._id
>
<a href=creative.clickUrl target="_blank">
<img src=creative.src alt=creative.name />
<img src=creative.src alt=creative.name height=creative.height width=creative.width />
</a>
</div>
</for>
Expand Down

0 comments on commit 423de3b

Please sign in to comment.