diff options
author | Andrew Dolgov <[email protected]> | 2010-11-20 01:31:20 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2010-11-20 01:31:20 +0300 |
commit | cd1bb36d5bd2d86c06770598df19317348a05ed0 (patch) | |
tree | 31021e954823ae1e2660939bb406659acf319203 | |
parent | ed7f0ecd3722f7db259033c4aa676469bdbd37f5 (diff) |
startup speed improvements
-rw-r--r-- | feedlist.js | 3 | ||||
-rw-r--r-- | functions.php | 2 | ||||
-rw-r--r-- | tt-rss.js | 2 |
3 files changed, 4 insertions, 3 deletions
diff --git a/feedlist.js b/feedlist.js index 9fb9c9efb..bd1c85722 100644 --- a/feedlist.js +++ b/feedlist.js @@ -29,6 +29,7 @@ function viewNextFeedPage() { function viewfeed(feed, subop, is_cat, offset) { try { if (is_cat == undefined) is_cat = false; + if (subop == undefined) subop = ''; // if (!offset) page_offset = 0; @@ -208,6 +209,8 @@ function feedlist_init() { hideOrShowFeeds(getInitParam("hide_read_feeds") == 1); + setTimeout("timeout()", 5000); + } catch (e) { exception_error("feedlist/init", e); } diff --git a/functions.php b/functions.php index 1778479ad..fe42ea43b 100644 --- a/functions.php +++ b/functions.php @@ -7033,7 +7033,7 @@ if (!$title) $title = getFeedTitle($link, $feed_id, false); - if (!$unread) + if ($unread === false) $unread = getFeedUnread($link, $feed_id, false); $obj['id'] = 'FEED:' . $feed_id; @@ -329,8 +329,6 @@ function init_second_stage() { if (has_local_storage()) localStorage.clear(); - setTimeout("timeout()", 3000); - console.log("second stage ok"); } catch (e) { |