Skip to content

Detect new page loads (no-work no-progress) - #5869

Closed
fregante wants to merge 1 commit into
mainfrom
better-ajax-detection
Closed

fregante wants to merge 1 commit into
mainfrom
better-ajax-detection

Conversation

@fregante

@fregante fregante commented Jul 29, 2022 •

Copy link
Copy Markdown
Member

cc @refined-github/maintainers

I thought we could just distinguish new page loads from history navigation and all would be good.

All in't good.

Even if we detect new page load correctly, we still need to deduplicate features that still exist on the page, outside the frame.

  1. Now I wonder, is this load/popstate distinction useful in any way?
  2. I think the only way out of this mess is to completely do away with global deduplication logic, and just deal with it in each feature, for example with attachElement
  3. It's also possible that GitHub is actively messing with our logic (involuntarily), see User CSS and hotfixes are removed after navigation  #5857

I think that Turbo does more than just swapping elements.

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant