Skip to content

Added lazy loading - #2879

Merged
insectengine merged 1 commit into
quarkusio:mainfrom
insectengine:image_lazyloading
Aug 3, 2026
Merged

Added lazy loading#2879
insectengine merged 1 commit into
quarkusio:mainfrom
insectengine:image_lazyloading

Conversation

@insectengine

Copy link
Copy Markdown
Collaborator

Title: Add native lazy loading to below-the-fold images

Summary

  • Add loading="lazy" to 243 tags across 58 layout and include files to defer offscreen image requests until the user scrolls near them
  • Keep above-the-fold images eager (nav logo, homepage hero, blog author headshots) to preserve LCP and avoid layout shift
  • No JavaScript required — uses the native browser loading attribute, supported by all modern browsers

Motivation

The site currently loads all images eagerly on every page. Image-heavy pages like the homepage have 40+ images, most below the fold, all fetched on initial load. Lazy loading defers those requests, reducing initial page weight and improving time-to-interactive.

** If you are updating a guide, please submit your pull request to the main repository: https://github.com/quarkusio/quarkus/tree/main/docs/src/main/asciidoc **

Title: Add native lazy loading to below-the-fold images

Summary

  - Add loading="lazy" to 243 <img> tags across 58 layout and include files to defer offscreen image requests until the user scrolls near them
  - Keep above-the-fold images eager (nav logo, homepage hero, blog author headshots) to preserve LCP and avoid layout shift
  - No JavaScript required — uses the native browser loading attribute, supported by all modern browsers

  Motivation

  The site currently loads all images eagerly on every page. Image-heavy pages like the homepage have 40+ images, most below the fold, all fetched on initial load. Lazy loading defers those requests, reducing initial page weight and improving time-to-interactive.
@github-actions

github-actions Bot commented Jul 27, 2026

Copy link
Copy Markdown

🙈 The PR is closed and the preview is expired.

@insectengine
insectengine marked this pull request as ready for review August 3, 2026 16:19
@holly-cummins

Copy link
Copy Markdown
Contributor

Bearing in mind I see around +/- 5 on the performance scores, depending on how the machine is feeling that day, I reckon this looks promising:

Before

image

After

image

The / homepage is where the change looks like it's definitely not just perf noise, and that's the most important one for a first impression.

@insectengine
insectengine merged commit eac305e into quarkusio:main Aug 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants