When I drag a file, worse if it seats at the root of the vault, there is quite a noticeable lag.
I profiled it with css selector stats and seems like this plugin uses too much global selectors?
Not sure how it could it be improved, but probably should only be injecting CSS styles inside a editor tab, and not other kinds of editor leaves.
- Regular selector starts: takes like 30ms (profiler with selector starts slows everything down tho)
- With this plugin: takes like 130ms (references to style-sheet-XXX-17 are linked to the plugin)
So other plugins/themes/snippets also produce slowdowns due to CSS selections
- e.g. in this testing environment the Excalidraw plugin increases the selector to 60ms
But I think it could be improved for this plugin
Regards
When I drag a file, worse if it seats at the root of the vault, there is quite a noticeable lag.
I profiled it with css selector stats and seems like this plugin uses too much global selectors?
Not sure how it could it be improved, but probably should only be injecting CSS styles inside a editor tab, and not other kinds of editor leaves.
So other plugins/themes/snippets also produce slowdowns due to CSS selections
But I think it could be improved for this plugin
Regards