Performance Optimization
In this guide, we’ll go through some options to optimize performance Primary.
Primary, despite its effort to stay as minimal on resources while serving aesthetics, may still be resource intensive for some computers or vaults. This is due to the extensive usage of CSS box-shadows and blurs which may cause issues for some.
Most mid-range computers (and above) today should be able to handle Primary’s performance. But if it’s not handling it well please proceed with these options.
Remove Popup Background Blur
The easiest way to start optimizing Primary is by removing the background blur on popups such as the Settings, Command Palette, Dialog boxes, etc.
Style Settings
- In your Obsidian vault, open up Settings.
- Under Community Plugins, click on Style Settings. Optionally, if you prefer to customize outside of the Settings modal, you can open up Style Settings through the Command Palette and looking for
Style Settings: Show style settings view
. - On the Style Settings tab, navigate to Primary Theme Settings -> Interface -> Animations and Effects
- Toggle
Remove Popup Background Blur
.
Snippet
If you don’t want to use the Style Settings plugin or if you’re on Restricted Mode and prefer a plugin-less route, here’s the snippet to remove background blur.
- Open up your text editor.
- Copy and paste the Popup Background Blur snippet below:
- Save the file as
primary_background-blur-adjustment.css
inside your vault’s snippet folder. You may find your snippet folder inside your vault with the folderpath ofVault Name/.obsidian/snippets
. If you still can’t find this folder, you can open it up by going to the Appearance tab. Scroll down and you’ll find a section called, CSS Snippets. On the top right of that section, a folder icon can be seen. Clicking on that icon opens up the snippets folder in your computer. - Once you’ve saved your file, turn it on. You can do this by going to your Obsidian and opening up Settings. Then go to the Appearance tab. Scroll down and you’ll find a section called, CSS Snippets. If you’re not seeing your new snippet file’s name, press the reload button on the top right. It should load the snippet.
- Once you see your newly created snippet on the list, toggle the snippet on.