Skip to content

Conversation

westonruter
Copy link
Member

@westonruter westonruter commented Feb 12, 2024

Summary

This is a sub-PR or #983. Review/merge it first.

By using wp_print_inline_script_tag() we can ensure that the CSP nonce attribute can be injected, as well as any other desired attributes.

Checklist

  • PR has either [Focus] or Infrastructure label.
  • PR has a [Type] label.
  • PR has a milestone or the no milestone label.

@westonruter westonruter added [Type] Enhancement A suggestion for improvement of an existing feature [Focus] JS & CSS no milestone PRs that do not have a defined milestone for release [Plugin] Embed Optimizer Issues for the Embed Optimizer plugin (formerly Auto Sizes) labels Feb 12, 2024
Copy link

github-actions bot commented Feb 12, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <westonruter@git.wordpress.org>
Co-authored-by: adamsilverstein <adamsilverstein@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@adamsilverstein adamsilverstein left a comment

Choose a reason for hiding this comment

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

left one comment

Co-authored-by: Adam Silverstein <adamjs@google.com>
@adamsilverstein adamsilverstein self-requested a review February 15, 2024 23:36
Copy link
Member

@adamsilverstein adamsilverstein left a comment

Choose a reason for hiding this comment

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

Marvelous!

@adamsilverstein adamsilverstein self-requested a review February 15, 2024 23:36
Base automatically changed from add/embed-optimizer-custom-script-type to feature/lazy-embeds February 16, 2024 17:20
@westonruter westonruter merged commit 9d4cf50 into feature/lazy-embeds Feb 16, 2024
@westonruter westonruter deleted the add/embed-optimizer-inline-script-construction branch February 16, 2024 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no milestone PRs that do not have a defined milestone for release [Plugin] Embed Optimizer Issues for the Embed Optimizer plugin (formerly Auto Sizes) [Type] Enhancement A suggestion for improvement of an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants