Skip to content

Commit

Permalink
Merge pull request #57 from xnuk/domcontentloaded
Browse files Browse the repository at this point in the history
제안: DOMContentLoaded 이벤트 발생 시에 jews 파싱
  • Loading branch information
disjukr committed Nov 1, 2014
2 parents b4b88b4 + 2d1b36c commit bbfd959
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions jews.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -1656,7 +1656,7 @@ function clearStyles(element) {
if ('undefined' === typeof window) {
module.exports = parse;
} else {
window.addEventListener('load', function (e) {
var run = function (e) {
parse(where(window.location.hostname), jews);
(function () {
var id = window.setTimeout('0', 0);
Expand Down Expand Up @@ -1754,5 +1754,7 @@ if ('undefined' === typeof window) {
].join('');
if (typeof jews.pesticide === 'function')
window.setInterval(jews.pesticide, jews.spraying_cycle || 1000);
}, true);
};
if (document.readyState === 'interactive' || document.readyState === 'complete') run();
else window.addEventListener('DOMContentLoaded', run, true);
}

0 comments on commit bbfd959

Please sign in to comment.