Live data from Hacker News

Show HN: Speed up your site by running JavaScript when the browser is idle

npmjs.com

1–10 of 95 posts

Re: Show HN: Speed up your site by running JavaScript when the browser is idle

#4
post #3

One of the extensions that suspends idle tabs can protect me from this?

requestIdleCallback isn’t something that you need to protect yourself from. It just executes a function when there’s nothing else happening on your page essentially.

Re: Show HN: Speed up your site by running JavaScript when the browser is idle

#5
post #4
post #3

One of the extensions that suspends idle tabs can protect me from this?

requestIdleCallback isn’t something that you need to protect yourself from. It just executes a function when there’s nothing else happening on your page essentially.

When there is nothing happening on my page my cpu can go idle.

Re: Show HN: Speed up your site by running JavaScript when the browser is idle

#8
Couldn’t this have negative impact on user battery life depending on the weight of the JS or number of open tabs with sites using it? Seems like it might be antagonistic to host OS efforts to to coalesce work and perform it while the CPU is already awake to reduce the number of wakeups and save power, since it specifically waits for browser idle.

Re: Show HN: Speed up your site by running JavaScript when the browser is idle

#9
post #4
post #3

One of the extensions that suspends idle tabs can protect me from this?

requestIdleCallback isn’t something that you need to protect yourself from. It just executes a function when there’s nothing else happening on your page essentially.

You mean my browser still doesn't use enough CPU? I don't want sites that aren't in focus to do anything.
Post reply on HN