Skip to content

Improve LCP score with fetchpriority attribute#141

Open
yebor974 wants to merge 1 commit intoTryGhost:mainfrom
yebor974:fix-pagespeed-fetchpriority-image
Open

Improve LCP score with fetchpriority attribute#141
yebor974 wants to merge 1 commit intoTryGhost:mainfrom
yebor974:fix-pagespeed-fetchpriority-image

Conversation

@yebor974
Copy link
Copy Markdown

@yebor974 yebor974 commented May 6, 2026

  • Add fetchpriority="high" attribute to hero image (landing and search header style) and feature image to improve LCP

Note

Low Risk
Low risk: adds a fetchpriority="high" hint to a couple of template images, with no logic or data flow changes; main risk is unintended network prioritization affecting load order on some pages.

Overview
Improves perceived performance by adding fetchpriority="high" to the site cover/hero image rendered in header-content.hbs and to post feature-image.hbs images, encouraging browsers to load these LCP-critical images earlier.

Reviewed by Cursor Bugbot for commit c7e1607. Bugbot is set up for automated code reviews on this repo. Configure here.

…h header style) and feature image to improve LCP
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 05c7e50c-65cc-4540-aa78-1bae8ad6fee8

📥 Commits

Reviewing files that changed from the base of the PR and between 75f5210 and c7e1607.

📒 Files selected for processing (2)
  • partials/components/header-content.hbs
  • partials/feature-image.hbs

Walkthrough

The pull request adds the fetchpriority="high" attribute to image elements across two Handlebars template files. In partials/components/header-content.hbs, the attribute is added conditionally to the header image when the header style is neither Magazine nor Highlight and a background image exists. In partials/feature-image.hbs, the attribute is added to the feature image element unconditionally. Total changes: 1 line modified and 1 line added.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately summarizes the main change: adding fetchpriority attribute to images to improve LCP score, which is the primary objective of the PR.
Description check ✅ Passed The description is directly related to the changeset, explaining that fetchpriority="high" is added to hero and feature images to improve LCP performance.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

1 participant