Skip to content

Allow transition delay #92

@theKashey

Description

@theKashey

RRR has a few goals to have a flat routing, the ability to preload code or data is one of them. But we cannot use this ability "properly" out of the box.

It might provide a better user experience(in terms of perceived performance and layout trashing) if RRR can delay the transition until:

  • code for the new location is loaded. Custom code is required to check/preload route target.
  • data for the new location loaded/present. Resource information might need to be extended to indicate the importance of it and describe should it be "transition blocking" or not.

Minimal implementation:

  • patch history to override .push
  • match new URL to the set of given
  • manually handle components, resources and any/or other fields
  • call original .push when required promises are resolved.

Ideally that history patch should be built-in functionality and resource management can be implemented only "inside" RRR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions