ampproject / ampproject/worker-dom

[FEATURE REQUEST] Implement Document.readyState

Open
#359 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.3k
Forks
154
PR merge metrics
No merged PRs in 30d

Description

https://developer.mozilla.org/en-US/docs/Web/API/Document/readyState

We should be at least returning `interactive` conservatively. `complete` seems a bit ambitious since the resources for that main thread operation may not have loaded.

Contributor guide

Open the contributing guide

Research direction

Start with the Document API and the linked MDN Document.readyState reference. Confirm how the project should conservatively expose interactive rather than complete, and consider the work done when Document.readyState reports the agreed value consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
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.