Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Opt-out of progress bar when morphing content #1270

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

ganchdev
Copy link

This PR resolves #1211

It introduces the ability to opt-out of a progress bar when the turbo refresh method is set to morph in the meta tag

<meta name="turbo-refresh-method" content="morph">.

To opt-out, a new meta tag turbo-refresh-progress-bar should be placed in the <head>.

<head>
  <meta name="turbo-refresh-method" content="morph">
  <meta name="turbo-refresh-progress-bar" content="hide">
</head>

This allows us to control the progress bar visibility without configuring anything within Turbo events. All other app visits would show the progress bar as usual.

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.

Turbo morph displays progress bar
1 participant