diff --git a/4chan_x.user.js b/4chan_x.user.js index 00205ed67..8af78e5f7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -319,6 +319,7 @@ var cb; if (/interactive|complete/.test(d.readyState)) { $.queueTask(fc); + return; } cb = function() { $.off(d, 'DOMContentLoaded', cb); diff --git a/script.coffee b/script.coffee index 5d9a20389..9f7c85e32 100644 --- a/script.coffee +++ b/script.coffee @@ -268,6 +268,7 @@ $.extend $, ready: (fc) -> if /interactive|complete/.test d.readyState $.queueTask fc + return cb = -> $.off d, 'DOMContentLoaded', cb fc()