Is there a way to have your function be called as the LAST in the $(document).ready() queue or, is there a way to trigger an event once this has completed?
I want to essentially see if something was fired by $(document).ready() and, if not, fire it after wards. If I put this code into document ready then there is no guarantee it will execute last so could result in multiple checks.
Add another
$(document).ready()block to the end of your code. jQuery executes them in the order it sees them, so if you put another block at the end of the code, it should be called after the other finishes.