Created
February 19, 2017 12:00
-
-
Save gauravtiwari/bf76048c1199b081038a075f19aa64a7 to your computer and use it in GitHub Desktop.
Initialise counter on DOM ready
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Initialize the counter code when DOM is ready | |
import counter from './counter'; | |
document.addEventListener('DOMContentLoaded', () => { | |
counter.initialize(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment