Automattic / Automattic/jetpack

Defer JS causes Like button to show "loading" on Atomic sites

Open
#40,681 4 comments 0 reactions 0 assignees View on GitHub
[Boost Feature] Image CDN [Experiment] AI labels added [Feature] Photon [Package] Image CDN [Plugin] Boost [Pri] Low [Status] Auto-allocated Bug Triaged
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 ...".

![Image](https://github.com/user-attachments/assets/c384c62b-bef9-44b6-943d-a44391cb0a75)

When disabling it, it shows up as expected:

![Image](https://github.com/user-attachments/assets/f61338a2-acec-4680-bcd3-9f5ea30de371)

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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.