https://github.com/tyom/next-3rd-party-duplicate-head-tag
https://github.com/tyom/next-3rd-party-duplicate-head-tag
Last synced: 11 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tyom/next-3rd-party-duplicate-head-tag
- Owner: tyom
- Created: 2021-02-15T16:14:56.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-17T11:56:45.000Z (over 5 years ago)
- Last Synced: 2025-10-30T10:10:57.602Z (9 months ago)
- Language: JavaScript
- Size: 31.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 3rd party script results in duplicate meta tag
A minimal repro which shows duplication of `` tag when adding a third-party script.

## Issue
The page background should be set to grey by a script injecting the `style` tag. When the script that is injecting the styles is origining in `Head` the `style` tag is not injected and instead an existing `meta` tag is duplicated. By moving the script outside of `Head` it works as epxected.