Page 1 of 1

Script counter infinite loop

Posted: Sun Nov 26, 2017 5:31 pm
by pan
Going to this site: https://www.goinhouse.com/ the number of the scripts shown on the icon increments indefinitely (I closed the window after the icon showed 5000+). Clicking on the icon just shows eight sites.

Re: Script counter infinite loop

Posted: Sun Nov 26, 2017 5:37 pm
by Pansa
pan wrote:Going to this site: https://www.goinhouse.com/ the number of the scripts shown on the icon increments indefinitely (I closed the window after the icon showed 5000+). Clicking on the icon just shows eight sites.
The number of sources does not correspond to the number of scripts.
The number in the interface corresponds to the script calls, and thus is almost always higher than the number of sites.

Which becomes more obvious if you consider that there are multiple distinct permissions per site now (represented by the checkboxes)

I would venture a guess that the issue of incrementation happens when the website tries to load an alternative script if one of theirs fails, and if that fails too, another aso.
Not sure if that should happen if the mainsite is already disallowed anything, or only if you allow the core scripts, but not its dependencies.

I assume that the inhouse people coded a loop for loadfailure, and noscript counts each iteration separately.

Re: Script counter infinite loop

Posted: Sun Nov 26, 2017 5:42 pm
by pan
Thanks, I hadn't realized that's what the number indicated and hadn't seen the infinite incrementation before. Of course temporarily allowing the scripts stopped the counter and now uBlock is incrementing to 1k plus. I assume they're just really unhappy about me blocking the ads.

Re: Script counter infinite loop

Posted: Sun Nov 26, 2017 5:49 pm
by Pansa
pan wrote:Thanks, I hadn't realized that's what the number indicated and hadn't seen the infinite incrementation before. Of course temporarily allowing the scripts stopped the counter and now uBlock is incrementing to 1k plus. I assume they're just really unhappy about me blocking the ads.
I wouldn't call it unhappy.

I guess they just assume that if the ad load fails, something must have gone wrong (like the ad source being offline) and thus retrying to load another ad.

If you want to fully confirm, does it also happen if you block ALL scripts on the site? Because logically it would be a script calling other scripts, which shouldn't happen when NO scripts are there.