mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:57:58 +01:00
Load Bookmarks/History in a background thread
This commit is contained in:
@@ -217,7 +217,7 @@ function Bookmarks() //{{{
|
||||
{
|
||||
// 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() { cache.bookmarks; }, 10000);
|
||||
setTimeout(function() { liberator.callFunctionInThread(null, function () cache.load()); }, 10000);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -587,7 +587,7 @@ function History() //{{{
|
||||
{
|
||||
// Forces a load, if not already loaded but wait 15sec
|
||||
// so that we don't load it at the same time as bookmarks
|
||||
setTimeout(function() { load(); }, 15000);
|
||||
setTimeout(function() { liberator.callFunctionInThread(null, load); }, 15000);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user