From efe975134a10f78b23ac0d74cbabf5a7d0123546 Mon Sep 17 00:00:00 2001 From: "chanial%noos.fr" Date: Mon, 24 Feb 2003 21:32:15 +0000 Subject: [PATCH] speeding up txul by not rebuilding the bookmarks toolbar when bookmarks are already read. --- browser/base/content/browser.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/browser/base/content/browser.js b/browser/base/content/browser.js index b5fd7f72d9a2..40cf0e9a4f62 100644 --- a/browser/base/content/browser.js +++ b/browser/base/content/browser.js @@ -405,10 +405,11 @@ function delayedStartup() #endif // now load bookmarks after a delay - BMSVC.ReadBookmarks(); + var hasRead = BMSVC.ReadBookmarks(); var bt = document.getElementById("bookmarks-ptf"); if (bt) { - bt.builder.rebuild(); + if (hasRead) + bt.builder.rebuild(); bt.database.AddObserver(BookmarksToolbarRDFObserver); } window.addEventListener("resize", BookmarksToolbar.resizeFunc, false);