diff --git a/content/posts/website-best-practices.gmi b/content/posts/website-best-practices.gmi index 0490da8..a0963d6 100644 --- a/content/posts/website-best-practices.gmi +++ b/content/posts/website-best-practices.gmi @@ -305,6 +305,9 @@ Unfortunately, pages with lazy loading don't finish loading off-screen images in ### Against speculative pre-loading +Update 2024-04-06: I've updated my stance on this. If you use the Speculation Rules API, preloading will obey user preferences in a standard cross-site way. +=> https://wicg.github.io/nav-speculation/speculation-rules.html + A common objection to my case against lazy-loading is that users may be more likely to click a link than scroll to the end, so pages should prioritize pre-loading the link. Pre-loading a page's essential resources is fine. Speculatively pre-loading content on separate pages isn't. Many users with poor connections also have capped data, and would prefer that pages don't decide to predictively load many pages ahead-of-time for them. The overlap between these two groups grows especially pronounced as data cap overages trigger throttling: diff --git a/content/posts/website-best-practices.md b/content/posts/website-best-practices.md index 80a7da0..158ded1 100644 --- a/content/posts/website-best-practices.md +++ b/content/posts/website-best-practices.md @@ -326,6 +326,8 @@ Unfortunately, pages with lazy loading don't finish loading off-screen images in ### Against speculative pre-loading +Update : I've updated my stance on this. If you use the [Speculation Rules API](https://wicg.github.io/nav-speculation/speculation-rules.html), preloading will obey user preferences in a standard cross-site way. + A common objection to my case against lazy-loading is that users may be more likely to click a link than scroll to the end, so pages should prioritize pre-loading the link. Pre-loading a page's essential resources is fine. Speculatively pre-loading content on separate pages isn't. Many users with poor connections also have capped data, and would prefer that pages don't decide to predictively load many pages ahead-of-time for them. The overlap between these two groups grows especially pronounced as data cap overages trigger throttling; this is enough to trigger [a seasonal pattern in Japan](https://web.archive.org/web/20220402004738/https://nitter.pussthecat.org/yoavweiss/status/1195036487538003968).