Skip to content

Two fragments inserted before the runtime loads may each add a runtime script #811

Open

Description

@JuroOravec

(Opus 5.5)

From reading the fragment loader (not yet seen in a browser): if two fragments are inserted into a page before Citry's browser runtime has finished loading, each may add its own runtime <script> tag, so the runtime could load twice. Found while porting citry-django to Vue islands, where two htmx swaps can land close together.

Next step: reproduce in a browser test (two fragments inserted back to back on a page without the runtime), and if it happens, make the loader share one pending load.

🤖 Generated with Claude Code

https://claude.ai/code/session_01KUhrHaXagmW5ZxpRAMwyom

Activity

  1. added this to the Next sprint milestone on Nov 19, 2026
  2. added
    next-sprint
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    next-sprint

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions