Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Database block loading animation https://github.com/siyuan-note/siyuan/issues/9416

Daniel0ea9b8f5a722
diff --git a/kernel/model/attribute_view.go b/kernel/model/attribute_view.go
index 246e4aed87..ae180d554c 100644
--- a/kernel/model/attribute_view.go
+++ b/kernel/model/attribute_view.go
@@ -209,7 +209,6 @@ func GetBlockAttributeViewKeys(blockID string) (ret []*BlockAttributeViewKeys) {
}
func RenderAttributeView(avID string) (viewable av.Viewable, attrView *av.AttributeView, err error) {
- start := time.Now()
waitForSyncingStorages()
if avJSONPath := av.GetAttributeViewDataPath(avID); !gulu.File.IsExist(avJSONPath) {
@@ -290,12 +289,6 @@ func RenderAttributeView(avID string) (viewable av.Viewable, attrView *av.Attrib
viewable.FilterRows()
viewable.SortRows()
viewable.CalcCols()
-
- used := time.Since(start)
- if minSleep := used.Milliseconds() - 256; 0 > minSleep {
- // 补全加载时间到 256ms,避免前端动画闪烁干扰视觉
- time.Sleep(time.Duration(-minSleep) * time.Millisecond)
- }
return
}