Code Monkey home page Code Monkey logo

Comments (7)

CyrusSUEN avatar CyrusSUEN commented on August 21, 2024

I agree.

And I think the most resource hungry part is gathering the ads. If ADN can extract ads only in idle or doing it with the lowest CPU priority, the performance will be greatly improved.

The downside is also obvious that there will be no real time ads list from the ADN menu (at least not a very accurate one).
At the meantime it could also be an excuse to not to extract / collect every ads on a certain webpage because users hardly notice it (not real time updating).

To think more about it, for the ADN vault page we can gradually build up the ad collage in the background (as a static HTML web page). Or something like Google maps that it streams data instead of loading and popping all the things at once.

from adnauseam.

dhowe avatar dhowe commented on August 21, 2024

The original ticket here was about only doing ad visiting during idle time, yes?
I can't imagine giving up the real-time ad detection feature...

from adnauseam.

mushon avatar mushon commented on August 21, 2024

from adnauseam.

dhowe avatar dhowe commented on August 21, 2024

Ok, so this needs to a cross platform method for determining browser idle-time (to be added to vAPI) - @yansh, want to take a crack at this ?

Useful? http://stackoverflow.com/questions/15262511/how-to-detect-idle-state-on-the-browser-which-use-webkit-in-jquery

from adnauseam.

dhowe avatar dhowe commented on August 21, 2024

I think we can realize a simple method for this, simply by checking time since last onPageLoad() in core.js.

Relates to #252

from adnauseam.

leoneckert avatar leoneckert commented on August 21, 2024

potential solution in PR above, checking the time of last onPageLoad and only visiting pages when that time is higher than 20 seconds.
Perhaps there should be an exception for visiting ads when they are clicked on in the vault ( I saw visiting ads while they are inspected already has priority) - or generally disregarding idle state when the user is opening the vault / interacting with ADN.

from adnauseam.

dhowe avatar dhowe commented on August 21, 2024

See #663

from adnauseam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.