]> git.wh0rd.org Git - tt-rss.git/commitdiff
startup speed improvements
authorAndrew Dolgov <fox@fakecake.org>
Fri, 19 Nov 2010 22:31:20 +0000 (01:31 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Fri, 19 Nov 2010 22:31:20 +0000 (01:31 +0300)
feedlist.js
functions.php
tt-rss.js

index 9fb9c9efbc1e56ff679569d33d8857444efd1462..bd1c85722733381c9df128f041c06a7da696a630 100644 (file)
@@ -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);
        }
index 1778479ad86f077c8f6dc8a3dbdad4b58d6591d1..fe42ea43bc7cc181202e96b70fc1a33b38f17940 100644 (file)
                if (!$title) 
                        $title = getFeedTitle($link, $feed_id, false);
 
-               if (!$unread)
+               if ($unread === false)
                        $unread = getFeedUnread($link, $feed_id, false);
 
                $obj['id'] = 'FEED:' . $feed_id;
index c88a08533858ae3cb58c856020c028a579b89c78..a4082bd8b8203a96c77854fdb2b9ca7d0a68b100 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -329,8 +329,6 @@ function init_second_stage() {
                if (has_local_storage())
                        localStorage.clear();
 
-               setTimeout("timeout()", 3000);
-
                console.log("second stage ok");
 
        } catch (e) {