Skip to content

perf(nuxt-img): call decode before swapping from placeholder#2008

Merged
danielroe merged 2 commits into
mainfrom
perf/decode
Nov 4, 2025
Merged

perf(nuxt-img): call decode before swapping from placeholder#2008
danielroe merged 2 commits into
mainfrom
perf/decode

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

this aims to improve performance when swapping from a placeholder.

https://www.tunetheweb.com/blog/what-does-the-image-decoding-attribute-actually-do/

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 4, 2025

Copy link
Copy Markdown

Deploying nuxt-image with  Cloudflare Pages  Cloudflare Pages

Latest commit: 41cc2f9
Status: ✅  Deploy successful!
Preview URL: https://a64889d5.nuxt-image.pages.dev
Branch Preview URL: https://perf-decode.nuxt-image.pages.dev

View logs

@pkg-pr-new

pkg-pr-new Bot commented Nov 4, 2025

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nuxt/image@2008

commit: 41cc2f9

@codecov-commenter

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 31.57895% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 7.07%. Comparing base (62998ab) to head (41cc2f9).

Files with missing lines Patch % Lines
src/runtime/components/NuxtImg.vue 31.57% 13 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##            main   #2008      +/-   ##
========================================
+ Coverage   7.02%   7.07%   +0.05%     
========================================
  Files         77      77              
  Lines       3575    3590      +15     
  Branches     138     139       +1     
========================================
+ Hits         251     254       +3     
- Misses      3276    3288      +12     
  Partials      48      48              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@danielroe danielroe merged commit 99a0278 into main Nov 4, 2025
8 checks passed
@danielroe danielroe deleted the perf/decode branch November 4, 2025 14:12
This was referenced Nov 4, 2025
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.

2 participants