Skip to content

[4.0.0-beta4] hx-preload doesn't support "intersect" or "revealed" #3819

Description

@YamiOdymel

I hope there’s an aggressive way to prefetch links on mobile when a link enters the viewport.

Google has also been promoting the Speculation Rules API lately, which allows prefetching and prerendering pages in the background. So I was hoping HTMX would have something similar to it.

While HTMX 4 documents that “Preload can listen to any event name supported by htmx trigger specs.", it doesn’t support intersect or revealed (because they aren’t regular events?). In that case, “supported by htmx trigger specs” sounds ambiguous.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    htmx 4Issues specific to htmx version 4

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions