Page 1 of 1

"Spawn chances by evolution factor" isn't always shown

Posted: Mon Jan 16, 2023 11:54 am
by FP83
"Spawn chances by evolution factor" calculator isn't shown on every page load, sometimes I have to reload the page several times to get it displayed.
I originally thought it might be due to AdBlock interference, but after disabling it the problem still persists.
I'm on Chrome on Linux (Ubuntu MATE, if that matters).

No error is produced in the console when the calculator isn't shown.

Code: Select all

<div id="evoChecker"></div>
container element for the calculator is present, but is just empty.

It appears calculator is loaded into container with JS after the page loads, maybe something prevents it from loading?

EDIT to add: I meant "Enemies" page in the wiki:
https://wiki.factorio.com/Enemies#Spawn ... ion_factor

Re: "Spawn chances by evolution factor" isn't always shown

Posted: Wed Feb 08, 2023 5:19 pm
by Bilka
Hey, thank you for noticing this and letting me know. I believe I've fixed the issue by moving the function that adds the element to a handler that should be called more reliably.