Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend scripts: print options later #1131

Merged
merged 6 commits into from
Jan 10, 2025

Conversation

mattwiebe
Copy link
Contributor

@mattwiebe mattwiebe commented Jan 7, 2025

I noticed that hooking to wp_enqueue_scripts on the frontend was printing our _activitypubOptions var nearly at the top. Seemed bad for SEO among other things.

Proposed changes:

Before:
Screenshot 2025-01-07 at 12 27 46

After (it's much lower, still there, just not way up top)
Screenshot 2025-01-07 at 12 27 18

Other information:

  • Have you written new tests for your changes, if applicable?

Testing instructions:

All frontend blocks that rely on _activitypubOptions still works: Follow Me, Followers, Reactions

@github-actions github-actions bot added [Focus] Editor Changes to the ActivityPub experience in the block editor [Status] In Progress labels Jan 7, 2025
@mattwiebe mattwiebe marked this pull request as ready for review January 7, 2025 18:29
@obenland
Copy link
Member

obenland commented Jan 7, 2025

Would it still work in the footer?

@mattwiebe
Copy link
Contributor Author

Would it still work in the footer?

It does seem to!

@obenland
Copy link
Member

obenland commented Jan 8, 2025

Looks like the changelog needs another update now, sorry! :)

@mattwiebe mattwiebe merged commit 8100153 into trunk Jan 10, 2025
24 checks passed
@mattwiebe mattwiebe deleted the fix/later-activitypub-options-in-head branch January 10, 2025 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Focus] Editor Changes to the ActivityPub experience in the block editor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants