Skip to content

Instantly share code, notes, and snippets.

@gauravtiwari
Created February 19, 2017 12:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gauravtiwari/bf76048c1199b081038a075f19aa64a7 to your computer and use it in GitHub Desktop.
Save gauravtiwari/bf76048c1199b081038a075f19aa64a7 to your computer and use it in GitHub Desktop.
Initialise counter on DOM ready
// 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