ampproject / ampproject/amppackager
Add support for script amp-onerror
Open
- Dominant language
- Go
- Stars
- 141
- Forks
- 46
- PR merge metrics
- No merged PRs in 30d
Description
See https://github.com/ampproject/amphtml/issues/22543#issuecomment-673603872.
Support adding `document.querySelector("script[src*='/v0.js']").onerror=function(){document.querySelector('style[amp-boilerplate]').textContent=''}` to the ``.
Contributor guide
Research direction
Read the linked AMP issue comment first, then locate the amppackager entry point that constructs the document head. Confirm how the requested amp-onerror script should be added there, and verify that the resulting head contains the specified script while preserving existing markup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100