From b4e58314f46c21decf9b52ed2ba47e37127bf3b7 Mon Sep 17 00:00:00 2001 From: Nestor Vera Date: Sat, 2 Dec 2023 20:09:40 +0100 Subject: [PATCH] docs: fix minor typo (#38) --- docs/guide/seo-considerations.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guide/seo-considerations.md b/docs/guide/seo-considerations.md index 394d40f..c3fe5b9 100644 --- a/docs/guide/seo-considerations.md +++ b/docs/guide/seo-considerations.md @@ -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.