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

Turbo + Stimulus for fast page loads #662

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dentarg
Copy link
Member

@dentarg dentarg commented Aug 10, 2024

- Use Turbo for superfast page loads
- Replace MouseTrap with built-in Stimulus KeyboardEvent Actions (https://stimulus.hotwired.dev/reference/actions#keyboardevent-filter)
- Redirect with 303 See Other (https://turbo.hotwired.dev/handbook/drive#redirecting-after-a-form-submission)
@dentarg dentarg changed the title WIP - use Turbo and Stimulus Turbo + Stimulus for fast page loads Aug 10, 2024
Comment on lines +58 to +59
"@hotwired/turbo": "https://cdn.jsdelivr.net/npm/@hotwired/[email protected]/+esm",
"@hotwired/stimulus": "https://cdn.jsdelivr.net/npm/@hotwired/[email protected]/+esm",
Copy link
Member Author

@dentarg dentarg Nov 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We want to keep the ability to work on the wiki without internet access, so this needs to be different. Can we utilise the gem https://github.com/hotwired/turbo-rails? But that depends on actionpack and then we get a bunch of things, like activesupport 😞

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants