Skip to content

Preloader does not use FetchRequest and therefore does not trigger events #963

@sascha-egerer

Description

@sascha-egerer

When using data-turbo-preload the FetchRequest implementation is not used but a native fetch(). See

const response = await fetch(location.toString(), { headers: { "VND.PREFETCH": "true", Accept: "text/html" } })

So the preload function will not trigger any events and is therefore useless in some cases e.g. if fetchOptions are set in turbo:before-fetch-request

Expected behavior: Preload function should trigger fetch events like turbo:before-fetch-request

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions