mirror of
https://github.com/zadam/trilium.git
synced 2025-11-16 18:25:51 +01:00
various widget optimizations for faster note switching
This commit is contained in:
@@ -29,21 +29,8 @@ async function executeStartupBundles() {
|
||||
}
|
||||
}
|
||||
|
||||
async function executeRelationBundles(note, relationName, tabContext) {
|
||||
note.bundleCache = note.bundleCache || {};
|
||||
|
||||
if (!note.bundleCache[relationName]) {
|
||||
note.bundleCache[relationName] = await server.get("script/relation/" + note.noteId + "/" + relationName);
|
||||
}
|
||||
|
||||
for (const bundle of note.bundleCache[relationName]) {
|
||||
await executeBundle(bundle, note, tabContext);
|
||||
}
|
||||
}
|
||||
|
||||
export default {
|
||||
executeBundle,
|
||||
getAndExecuteBundle,
|
||||
executeStartupBundles,
|
||||
executeRelationBundles
|
||||
executeStartupBundles
|
||||
}
|
||||
Reference in New Issue
Block a user