ampproject / ampproject/amppackager

Add support for script amp-onerror

Open
#501 1 comment 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.