Problems to delete many tiddlers, Firefox complains, suggest to stop the script

Hello everyone,

I wanted to know if anyone has seen this behavior: when trying to delete more than 10 tiddlers, via $:/AdvancedSearch or Mohammad’s $:/Commander, it takes forever and the browser pops up a message “… script is slowing down the browser…” suggesting to stop the script, like every 2 seconds.

I have not found a way how to at least ignore the warning and let the delete action continue - not without clicking to go on. I have over 3000 tiddlers and I am deleting 100 of them… maybe that’s the reason.

Thank you!

Albertina,
using Firefox 133.0.3 on a Mac Apple Silicon (it is the same on Mac Intel)

Hi Albertina,
Welcome!

Do you use a single file wiki, or a Node.js configuration. – For both of them deleting 100 tiddlers should not cause a problem.

So what else do you show while the $:/AdvancedSearch tiddler is open and you perform the delete actions?

I think FF does show the “Slow thread” warning the first time after 10 seconds or so. So deleting a 100 tiddlers should be done in less than 100ms. (I did just test this)

I did delete 20000 tiddlers and it took less than a second, with FF.

What is in your tiddlers? Tiddlywiki can become slow if the tiddlers are very big

Hi pmario,

very kind of you to respond.

It is a single wiki file in size of 16MB (a few svg files, no bitmaps, a lot of text). I am deleting 73 tiddlers with a standard filter ([tag[2beremoved]]) and it takes some 20 sec before the first Firefox warning pops up: “This page is slowing down Firefox. To speed up your browser, stop the page.” During this the page is frozen.

If I don’t stop it and just cancel the warning, it will come up again, in a few seconds. In the end I have to stop the page (script) because all the tiddlywiki tabs (I usually have 2-3 opened) are frozen as well. And not a single tiddler is deleted (I have to refresh the page). Originally I thought it was normal, but then I have noticed nobody reported anything similar.

I have seen this behaviour regardless of a web browser or platform (Win, Linux, Mac) and I learned to live with this (I delete only a few tiddlers at a time).

If you could direct me to some things to check I’d be grateful, if not, fine. It’s not vital in any way, just annoying.

Kindest regards,

AS

Hi telumire,

thank you for getting back to me.

It’s mostly text, it’s kind of information security management systems with a few hundreds controls (short text) and perhaps 50 tiddlers with 3-4 pages (of policies, standards, excerpts from books). And it’s a local TW autosaved with the timini plugin (Firefox or Chrome).

Kindest regards,

AS

Hi pmario,

just to let you know, I have found the culprit, it was a plugin that I wasn’t even using. After I have disabled it (TiddlyMap) the mass delete started to work as expected, and of course, as you mentioned.

People like you and @telumire have actually made me search deeper on my end, because if you don’t know, the problem surely is only with me.

Thank you both,

AS

3 Likes

Thanks for sharing your solution! I’d also noticed that deleting tiddlers was a lot slower than I’d expect… and I’ve also got TiddlyMap installed. :woman_facepalming: Unfortunately, I do use it… but it ought to be easier to find some work-around now I know the likely culprit.

Maybe temporarily disabling TiddlyMap when you need to bulk delete tiddlers would suffice?