Skip to content

Wiki URL is read even if wiki is not shown #20070

@Siderite

Description

@Siderite

From a forum post I found out that in Correspondence games, in the Analysis Board, the wiki URL for the position is accessed even if in that context the wiki text is never shown. The code $(".analyse__wiki-text").html(...) doesn't hit any existing element on the page.

It's inefficient for Lichess and, as the post shows, can even cause some issues.

Code here:

if (this.wiki && this.data.game.variant.key === 'standard') this.wiki(this.nodeList);

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