Jump to content

Infinite Loading Bug on Mods


Radnen

Recommended Posts

Sometimes when viewing a mod page, we don't have the offsetHeight loaded (0) and it causes a divide by 0, which JS interprets as Infinity. Then, the for loop occurs and never breaks out of it. Trust me; I'm a programmer. If this happens we can silently fail and bypass the loop (check for 0, Infinity or isNaN()), or defer the code with 'requestAnimationFrame' so it can wait for sizes of things to load.

 

 

Edited by Radnen
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...