Skip to content

Wiki title blink does not work reliably when opening from another tab/window #265

Open
@gonX

Description

@gonX

The Javascript code handling the fragment in the URL that's designed to blink the title of the section in the fragment does not seem to consider whether the tab is visible to the user yet.

How to reproduce:

  1. Open this link leading to the wiki in a new tab: https://opentabletdriver.net/Wiki/FAQ/Linux#libinput-smoothing
  2. Wait a second or 2 after the tab finishes loading
  3. You may now switch to the new tab
  4. Observe that the section title has not blinked to catch the attention of the user

You can switch to the tab instantly after opening, or refresh the page to confirm that the script does work correctly.

Suggested fixes:

  • Don't blink the title before the script can confirm that the user is on the page ('window visible' event if any, mouse movement, etc)
  • Instead of using an animation, highlight the title in a different manner

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomersjavascriptAffects client-side website codewikiImprovements or additions to the wiki

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions