Skip to content

Remove “ready.js” ahead of “2.x” release. - #307

Merged
theengineear merged 1 commit into
mainfrom
remove-ready
Jun 30, 2025
Merged

theengineear merged 1 commit into
mainfrom
remove-ready

Conversation

@theengineear

Copy link
Copy Markdown
Collaborator

Native APIs will fully replace the functionality offered by this file. As such, we will prune it ahead of the “2.x” release.

In particular, the blocking="render" attribute / value pair spec has been merged in — see whatwg/html#7474.

Closes #302.

Native APIs will fully replace the functionality offered by this file.
As such, we will prune it ahead of the “2.x” release.

In particular, the `blocking="render"` attribute / value pair spec has
been merged in — see whatwg/html#7474.

Closes #302.
Comment thread demo/react/index.js
}
}

ready(document).then(() => {

@theengineear theengineear Jun 30, 2025 •

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless I’ve misunderstood, I believe this guard is not needed. The <script> that adds this file is placed in the markup after the root element and so it ought to be available for binding by the time these lines execute. And, the element doesn’t have children so nothing is visible until the script is fully loaded and the element is upgraded.

When testing this locally, I didn’t encounter any issues with this. Totally possible that I’m misunderstanding an edge case here though — happy to add specific code back in here to handle that if needed 👌

@theengineear

theengineear commented Jun 30, 2025 •

Copy link
Copy Markdown
Collaborator Author

@klebba — it’s ready to go!

@theengineear
theengineear merged commit b734ddc into main Jun 30, 2025
@theengineear
theengineear deleted the remove-ready branch June 30, 2025 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Drop ready.js in 2.0 stable

1 participant