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

Replace stylesheets #1180

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

aaronjensen
Copy link

For a while our application has had this method of replacing stylesheets that maintains the order of stylesheets as best as it can and replaces stylesheets in place if only their digest has changed. This is more sophisticated than what was there originally, but you'll notice that if you attempt to use the existing fixtures/stylesheets/left.html and right.html interactively that it doesn't work more than once. Turbo seems to hang and then refresh the page. With this method, not only does that work, but the additional fixture I put in place that ensures there's minimal to no flicker or ordering issues works as well.

I'm opening this as a draft to see if there is interest in this and/or concerns. I'm happy to clean it up if it seems like something you'd want to move forward with, which would allow us to remove our custom code from our codebase.

Thank you for the consideration.

@aaronjensen aaronjensen force-pushed the replace-stylesheets branch 2 times, most recently from fbd042f to 567b55a Compare February 9, 2024 15:51
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.

None yet

1 participant