Skip to content

11ty dev server can "trap" you on the current page #147

Description

@KonnorRogers
2026-08-09_16-42-46.remuxed.mp4

Firefox 153
Mac M3
Tahoe 26.5.1
11ty 3.1.6

Looks like specifically its the "focus" event listener seems to be the problem:

window.addEventListener("focus", this.reconnectEventCallback);
window.addEventListener("visibilitychange", this.reconnectEventCallback);

from what i can tell event ordering is:

focus -> beforeunload -> unload

so because focus fires before the unload events, it blocks navigation to external places. Haven't tested the new alpha releases if its the same.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions