OpenTabletDriver / OpenTabletDriver/opentabletdriver.github.io

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

Open
#265 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug good first issue javascript wiki
Dominant language
HTML
Stars
36
Forks
10
Avg merge
12h 32m
Merged PRs (30d)
9

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the JavaScript that handles URL fragments and triggers the wiki section-title blink when opening the FAQ link in a new tab. Reproduce the delayed-tab-switch case, then verify that the title still draws attention after the page becomes visible; the issue does not name a file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.