8000 How to check if page was loaded via turbolinks/pjax or if it was the first page load · Issue #595 · turbolinks/turbolinks · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
This repository was archived by the owner on Sep 25, 2021. It is now read-only.
How to check if page was loaded via turbolinks/pjax or if it was the first page load #595
Open
@abinoda

Description

@abinoda

How can I check if the current loaded page was loaded via turbolinks/pjax, or via first full page load?

Here's the logic I'm looking to implement:

document.addEventListener('turbolinks:load', function(e) {
  // if this was a full page load, do something
  // else do something else
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0