Handle the code being called after DOMContentLoaded