1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 09:57:59 +01:00

remove preload option

This commit is contained in:
Martin Stubenschrott
2009-04-30 08:47:48 +02:00
parent 324597c8a7
commit cb74c7f40c
10 changed files with 11 additions and 56 deletions

View File

@@ -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 ////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////{{{