PythonIreland / PythonIreland/2026.pycon.ie
Add width/height attributes to all img elements to prevent CLS
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 1
- Forks
- 0
- Avg merge
- 10m
- Merged PRs (30d)
- 1
Description
Problem
All <img> elements across the site are missing explicit width and height attributes. Without intrinsic dimensions, the browser cannot reserve layout space before images load, causing layout shift (CLS).
Current CLS is estimated borderline (0.05–0.15, threshold is ≤0.1). This is the primary CLS risk.
Affected images
- Hero WebP in
layouts/partials/hero.html— Hugo-processed, dimensions available via.Width/.Height - Logo PNG in
layouts/partials/nav.htmlandlayouts/partials/footer.html— displayed at 32×32 - Dublin gallery images in
layouts/partials/discover-dublin.html— Unsplash URLs withw=andh=params - About section images in
layouts/partials/about.html— Unsplash URLs - Speaker photos (when speakers are added)
Also: the featured gallery image in discover-dublin.html is missing loading="lazy" (it is below the fold but eagerly loaded).
Fix for Hugo-processed images
```html
```
Fix for Unsplash images
Add explicit dimensions matching the w= and h= query parameters already in the URLs.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the image elements in layouts/partials/hero.html, nav.html, footer.html, discover-dublin.html, and about.html. Use Hugo image dimensions for the hero and match the existing Unsplash w= and h= parameters elsewhere; add lazy loading to the below-the-fold featured gallery image. Done means every listed image has explicit dimensions and the gallery image is lazy-loaded.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- hugo
- Domain
- performance, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 78/100