Adding DOMContentLoaded event