diff options
author | Martin Stubenschrott <stubenschrott@vimperator.org> | 2009-04-30 08:47:48 +0200 |
---|---|---|
committer | Martin Stubenschrott <stubenschrott@vimperator.org> | 2009-04-30 08:47:59 +0200 |
commit | cb74c7f40c4cd637b13063485f91b2d0cdef64fc (patch) | |
tree | 78f507dd053a6601c52f0dc693e7844cafcfc0c6 /vimperator/content | |
parent | 324597c8a71b60f339ae1f499d74b596bbd5d511 (diff) | |
download | pentadactyl-cb74c7f40c4cd637b13063485f91b2d0cdef64fc.tar.gz |
remove preload option
Diffstat (limited to 'vimperator/content')
-rw-r--r-- | vimperator/content/bookmarks.js | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/vimperator/content/bookmarks.js b/vimperator/content/bookmarks.js index 7e91eacd..1d362a20 100644 --- a/vimperator/content/bookmarks.js +++ b/vimperator/content/bookmarks.js @@ -133,6 +133,8 @@ function Bookmarks() //{{{ return root; } + // since we don't use a threaded bookmark loading (by set preload) + // anymore, is this loading synchronization still needed? --mst let loading = false; this.load = function load() { @@ -247,15 +249,6 @@ function Bookmarks() //{{{ var cache = storage.newObject("bookmark-cache", Cache, false); storage.addObserver("bookmark-cache", bookmarkObserver, window); - liberator.registerObserver("enter", function () { - if (options["preload"]) - { - // Forces a load, if not already loaded but wait 10sec - // so most tabs should be restored and the CPU should be idle again usually - setTimeout(function () { liberator.callFunctionInThread(null, function () cache.bookmarks); }, 10000); - } - }); - /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// OPTIONS ///////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ @@ -272,10 +265,6 @@ function Bookmarks() //{{{ validator: Option.validateCompleter }); - options.add(["preload"], - "Speed up first time history/bookmark completion", - "boolean", true); - /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// MAPPINGS //////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ |