Skip to content

Should window.navigation fire events fire on page load? #31

@domenic

Description

@domenic

On a cross-document navigation to a new page, we could fire one or more of:

  • window.navigation.currentEntry fires navigateto
  • window.navigation fires currententrychange

The timing would be debatable. After DOMContentLoaded? After pageshow? Should it differ for restores-from-bfcache vs. fresh network navigations?

Another data point is that popstate and hashchange do not fire on page load. So, this would be a departure from those. I'm not sure what direction that indicates, though: have people been frustrated that popstate doesn't fire on page load? Or would they be more frustrated if it did?

Metadata

Metadata

Assignees

No one assigned

    Labels

    changeA proposed change to the API, not foundational, but deeper than the surface

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions