Skip to content
This repository has been archived by the owner on Jan 12, 2019. It is now read-only.

Commit

Permalink
Wait for DOMContentLoaded instead of just delaying 2s, as suggested b…
Browse files Browse the repository at this point in the history
…y original author:brian-c
  • Loading branch information
JJones780 committed Aug 24, 2013
1 parent 7a6f7f0 commit b5b5a56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phantom-limb.js
Original file line number Diff line number Diff line change
Expand Up @@ -361,5 +361,5 @@
GLOBAL.phantomLimb = phantomLimb;
}

if (config.startOnLoad) setTimeout(start,2000);
if (config.startOnLoad) window.addEventListener('DOMContentLoaded', start, false);
}(this));

0 comments on commit b5b5a56

Please sign in to comment.