diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index d293cb87a..d49408c1c 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -2410,7 +2410,7 @@ return $.add(strong, a); }, update: function(pageNum) { - var now, onload, _ref, _ref1; + var onload, _ref, _ref1; if (!navigator.onLine) { return; } @@ -2420,18 +2420,6 @@ if ((_ref1 = Index.notice) != null) { _ref1.close(); } - if (d.readyState !== 'loading') { - - } else { - now = Date.now(); - $.ready(function() { - return setTimeout((function() { - if (!(Index.req && !Index.notice)) { - - } - }), 5 * $.SECOND - (Date.now() - now)); - }); - } if (typeof pageNum !== 'number') { pageNum = null; } diff --git a/builds/crx/script.js b/builds/crx/script.js index 13b4be5f0..d570fdb9b 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -2420,7 +2420,7 @@ return $.add(strong, a); }, update: function(pageNum) { - var now, onload, _ref, _ref1; + var onload, _ref, _ref1; if (!navigator.onLine) { return; } @@ -2430,18 +2430,6 @@ if ((_ref1 = Index.notice) != null) { _ref1.close(); } - if (d.readyState !== 'loading') { - - } else { - now = Date.now(); - $.ready(function() { - return setTimeout((function() { - if (!(Index.req && !Index.notice)) { - - } - }), 5 * $.SECOND - (Date.now() - now)); - }); - } if (typeof pageNum !== 'number') { pageNum = null; } diff --git a/src/General/Index.coffee b/src/General/Index.coffee index 9950a5df5..ab1f36b28 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -203,15 +203,6 @@ Index = return unless navigator.onLine Index.req?.abort() Index.notice?.close() - if d.readyState isnt 'loading' - else - # Delay the notice on initial page load - # and only display it for slow connections. - now = Date.now() - $.ready -> - setTimeout (-> - return unless Index.req and !Index.notice - ), 5 * $.SECOND - (Date.now() - now) pageNum = null if typeof pageNum isnt 'number' # event onload = (e) -> Index.load e, pageNum Index.req = $.ajax "//a.4cdn.org/#{g.BOARD}/catalog.json",