Obsidian will experience lag when rendering Mermaid diagrams when there are many files, and loading plugins can also cause lag in Obsidian’s Mermaid rendering. I hope this will be fixed in the new version.
Please, open a new bug report and make sure you read and follow the troubleshooting steps and the bug report template.