feat: Improve startup time and reduce initial animations, b=bug #6997, c=common, workspaces

This commit is contained in:
Mr. M
2025-07-30 11:41:09 +02:00
parent db0880ea8b
commit 36fe38c145
6 changed files with 26 additions and 26 deletions

View File

@@ -1606,7 +1606,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
) {
delete this._alwaysAnimatePaddingTop;
const essentialsHeight = essentialContainer.getBoundingClientRect().height;
if (!forAnimation && animateContainer && gZenUIManager.motion) {
if (!forAnimation && animateContainer && gZenUIManager.motion && gZenStartup.isReady) {
gZenUIManager.motion.animate(
workspaceElement,
{