Skip to content

Plugins: Icons invisible when a large script is added on head.end #2589

Closed
@personalizedrefrigerator

Description

Search terms

script, defer, svg, head.end, body.begin, plugin, theme

Expected Behavior

The size of a script included in head.end should not affect whether icons are visible.

Actual Behavior

Large scripts cause most icons (dropdown icons, etc.) to be invisible. Adding defer to the script helps, but the icons are still sometimes invisible.

screenshot: Comparison between the expected and the actual behavior.

Steps to reproduce the bug

A minimal sample project with the issue can be found here.

More specifically,

  1. Clone https://github.com/personalizedrefrigerator/bug-report.git
  2. Switch to the typedoc/bug-include-script branch.
  3. Run npm i
  4. Run npm run build
  5. Run npm run doc
  6. Start a server: cd docs && python3 -m http.server.
  7. Open the documentation (tested in Firefox and Chromium on Ubuntu 24.04).

Environment

  • Typedoc version: 0.25.13
  • TypeScript version: 5.4.5
  • Node.js version: v22.1.0
  • OS: Ubuntu 24.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions