question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debouncer doesn't work in a fresh profile

See original GitHub issue

Description

The debouncer doesn’t work in a new profile. Maybe it doesn’t know how to reload the debounce.json file once it becomes available?

Steps to Reproduce

  1. Create a fresh browser profile and start the browser.
  2. Visit https://dev-pages.brave.software/navigation-tracking/debouncing.html
  3. Close the browser and start it again in the same profile.
  4. Visit https://dev-pages.brave.software/navigation-tracking/debouncing.html

Actual result:

Step 2: Screenshot from 2022-07-15 17-37-15

Step 4: Screenshot from 2022-07-15 17-36-46

Expected result:

Both Step 2 and Step 4: Screenshot from 2022-07-15 17-36-46

Reproduces how often:

Always.

Brave version (brave://version info)

Brave | 1.43.23 Chromium: 103.0.5060.114 (Official Build) nightly (64-bit)
Revision | a1c2360c5b02a6d4d6ab33796ad8a268a6128226-refs/branch-heads/5060@{#1124}
OS | Linux

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
bridivercommented, Nov 7, 2022

just noting that this isn’t a special case for debouncer; its true for adblock-rs filtering and many other component served things. So i think its probably good to fix (basically freeze up Brave until the first round of components have been fetched) but we should have a general solution to it, not something debouncer-specific

I suggested this to @bbondy a long time ago, but depending on connection speed it has the potential to make Brave look very slow on the first startup which is not great. Another option would be to bundle whatever the current rules are at CI build time.

0reactions
pes10kcommented, Nov 7, 2022

i think that is a great idea (bundling the then-current version of components with the builds)

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Correctly Debounce and Throttle Callbacks in React
Open the demo and type a query: you'll see that the list is filtered with a delay of 300ms after the last typing:...
Read more >
My debounce isn't working? : r/robloxgamedev - Reddit
So I'm trying to make a script where every time the player jumps, it sends a message to the server saying "Player jumped!"....
Read more >
[profiles] Proposing debouncing profile · Issue #2172 - GitHub
The Problem in case of switch or contact channels. If the channel switches a couple of times between the two states ON/OFF (or...
Read more >
shiny::debounce problem with numericInputs and dynamic slider
I'd like to ensure that the slider is not re-generated unless the user stops ... like a perfect opportunity to use the new...
Read more >
Implement Debouncing in React in 3 Different Ways
Debouncing is used for optimizing the performance of a web app. It is done by limiting the rate of execution of a particular...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found