Skip to content

Commit a0f3c1b

Browse files
docs: fix dead links
1 parent 6038c97 commit a0f3c1b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![npm version][npm-version-src]][npm-version-href]
66
[![bundle][bundle-src]][bundle-href]
77

8-
Universal lazy loading library leveraging native browser APIs. It is intended to be used with the `loading="lazy"` attribute alongside (blurry) placeholder images and with a [BlurHash](https://unlazy.byjohann.dev/placeholders/blurhash) or [ThumbHash](https://unlazy.byjohann.dev/placeholders/thumbhash) string.
8+
Universal lazy loading library leveraging native browser APIs. It is intended to be used with the `loading="lazy"` attribute alongside (blurry) placeholder images and with a [BlurHash](https://unlazy.byjohann.dev/placeholders/hash-based#blurhash) or [ThumbHash](https://unlazy.byjohann.dev/placeholders/hash-based#thumbhash) string.
99

1010
## Features
1111

docs/guide/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# What Is unlazy?
22

3-
unlazy is a universal lazy loading library leveraging native browser APIs. It is intended to be used with inlined (blurry) placeholder images or a placeholder image representation like a [BlurHash](/placeholders/blurhash) or [ThumbHash](/placeholders/thumbhash) alongside the native `loading="lazy"` attribute.
3+
unlazy is a universal lazy loading library leveraging native browser APIs. It is intended to be used with inlined (blurry) placeholder images or a placeholder image representation like a [BlurHash](/placeholders/hash-based#blurhash) or [ThumbHash](/placeholders/hash-based#thumbhash) alongside the native `loading="lazy"` attribute.
44

55
Images are initially rendered with blurry placeholders, giving the user an impression of the page layout and content. As the images enter the viewport, they are replaced with the full-quality versions, providing a smoother experience. This approach prioritizes the initial rendering of the page and improves the perceived performance for users, especially when the connection is slow or unstable.
66

@@ -14,7 +14,7 @@ unlazy enhances the native `loading="lazy"` attribute by processing images and m
1414

1515
1. **Data Attribute Processing**: Uses `data-src`, `data-srcset`, and `data-sizes` attributes which are swapped to standard attributes when images load. This prevents browsers from eagerly loading images before they enter the viewport.
1616

17-
2. **Placeholder Generation**: Decodes [BlurHash](/placeholders/blurhash) or [ThumbHash](/placeholders/thumbhash) strings (via `data-blurhash` or `data-thumbhash` attributes) into PNG data URIs for placeholders.
17+
2. **Placeholder Generation**: Decodes [BlurHash](/placeholders/hash-based#blurhash) or [ThumbHash](/placeholders/hash-based#thumbhash) strings (via `data-blurhash` or `data-thumbhash` attributes) into PNG data URIs for placeholders.
1818

1919
3. **Chrome Workaround**: Generates unique indexed SVG placeholders to prevent Chrome's aggressive image loading behavior that can trigger load events prematurely.
2020

0 commit comments

Comments
 (0)