Skip to content

<link rel="prefetch"> should fire load/error events #1148

@bzbarsky

Description

@bzbarsky

Chrome already does this in some cases, apparently. Testcase:

data:text/html,<link rel="prefetch" href="http://example.com" onload="alert(1)" onerror="alert(2)">

Not sure whether it ever fires error here.

Sites are working around the lack of these events by doing prefetching via img/object/etc hacks...

Note the discussion #1142 though.

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