This project has stumped me for a month now… I finally got it sort of working, but I think due to the asynchronous nature of ajax, each time the page is loaded up, it displays differently. Only on the rare occasion does everything populate correctly.
I’ve been trying to read around this, but I still haven’t figured out how to implement a solution that works for my code. I thought maybe I could do something like this (http://stackoverflow.com/questions/3709597/wait-until-all-jquery-ajax-requests-are-done) but i can’t get it to work.
Here is my pen: https://codepen.io/plasticookies/full/gWOXPw/