Skip to content

Commit

Permalink
docs: fix minor typo (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
hacknug authored Dec 2, 2023
1 parent 5f265f8 commit b4e5831
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/seo-considerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ When implementing lazy loading with blurry placeholders, it is important to cons

## Detects Bots and Crawlers

unlazy provided includes an exported function called `isCrawler` that detects if the visitor is a bot or a crawler. This is useful to ensure that the full-quality image is loaded and indexed by search engines. The library trusts that bots and crawlers can evaluate the `srcset` attribute and load the appropriate image based on their needs.
unlazy includes an exported function called `isCrawler` that detects if the visitor is a bot or a crawler. This is useful to ensure that the full-quality image is loaded and indexed by search engines. The library trusts that bots and crawlers can evaluate the `srcset` attribute and load the appropriate image based on their needs.

The `isCrawler` function checks the user agent string for common bot and crawler identifiers and determines if the `onscroll` event is supported by the browser. This information is then used to decide whether to immediately load the full-quality image or to use the blurry placeholder approach for the specific visitor.

Expand Down

0 comments on commit b4e5831

Please sign in to comment.