Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Prefetch support for modal routes #146

@b-barry

Description

@b-barry

Feature Request

What feature would you like to see?

Add prefetch support for modal routes, similar to what's available in Inertia.js v2. This would allow preloading modal content on hover or after a delay, making modals open instantly when clicked.Could this feature be considered for inclusion before the v1 release?

Why is it needed?

Prefetching would significantly improve the user experience by eliminating the loading delay when opening modals. Since modals are often used for quick actions and previews, having instant response times would make the interaction feel more native and responsive.

Alternatives ConsideredCurrently

the only alternative is to wait for the modal content to load after clicking, which creates a noticeable delay. While we could manually implement prefetching using Inertia's router, having it built into Inertia Modal would provide a cleaner, more maintainable solution that works seamlessly with the modal API.


Important Notes:

  • ❌ Do not post screenshots for code-related issues—use code blocks instead.
  • 📹 Only post videos when necessary for styling/visual bugs.
  • ✅ Ensure your issue is reproducible before submitting.
  • 🔍 Search existing issues before opening a new one.
  • 🛠️ If your issue involves a specific use case or is hard to reproduce, consider creating a minimal GitHub repository with a fresh Laravel app to demonstrate the problem.

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