Automattic / Automattic/jetpack
Defer JS causes Like button to show "loading" on Atomic sites
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Boost
### Quick summary
When enabling "Auto-Resize Lazy Images" - currently in beta, the like button added to the post template in Twenty Twenty-Five stays as "loading ...".

When disabling it, it shows up as expected:

Note: It doesn't happen straight away, I need to use an incognito window and do a hard refresh.
### Steps to reproduce
1. Go to Jetpack > Boost
2. Enable Auto-resize beta - test if the like button is showing on a post
3. Disable - test if it's showing now
### A clear and concise description of what you expected to happen.
Always show the like button.
### What actually happened
Not showing the like button
### Impact
One
### Available workarounds?
Yes, easy to implement
### If the above answer is "Yes...", outline the workaround.
Disable the feature
### Platform (Simple and/or Atomic)
_No response_
### Logs or notes
Browser: Brave
Jetpack: Latest version
Host: WordPress.com (Atomic)
Theme: Twenty Twenty-Five
Contributor guide
Research direction
Reproduce this in Jetpack > Boost on an Atomic site using Twenty Twenty-Five, with Auto-Resize Lazy Images enabled, then compare an incognito hard refresh with the feature disabled. Done means the post-template Like button renders instead of remaining in loading state while the beta feature is enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, wordpress
- Domain
- frontend, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100