How do I check if loading class is no more on the page and enable a button?
right now I check it like below:
if (!($('.loading').length > 0)){
console.log("page loading is done")
}
This doesn't seem to work. It only checks it once and nothing happens as we still have loading class assigned to one of the id's.