Skip to content

Eager/lazy loaded turbo-frames are reloaded after snapshot restoration #429

@tobyzerner

Description

@tobyzerner

Navigating away from a page, then going back, causes all eager/lazy loaded turbo frames to be reloaded on the original page after the snapshot is restored.

Simple example:

<turbo-frame id="page_1" target="_top">
  <a href="/posts/1">Post 1</a>
  <turbo-frame id="page_2" src="?page=2" loading="lazy" target="_top"></turbo-frame>
</turbo-frame>

When you visit the page initially, the #page_2 frame lazy loads as expected. If you click on "Post 1" and then go back, after the page snapshot is restored, the #page_2 frame reloads, which is undesirable.

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