Skip to content

Commit

Permalink
Use native DOMContentLoaded event
Browse files Browse the repository at this point in the history
  • Loading branch information
QWp6t committed Sep 11, 2016
1 parent 572b074 commit 724d550
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ const routes = {
};

// Load Events
$(document).ready(() => new Router(routes).loadEvents());
document.addEventListener('DOMContentLoaded', () => new Router(routes).loadEvents());

0 comments on commit 724d550

Please sign in to comment.