svendahlstrand / plugin-search-space

🔭 Find long-lost posts and replies on your Micro.blog.
https://micro.blog/account/plugins/view/78
MIT License
2 stars 1 forks source link

Hangs on iOS Safari 18 #8

Open svendahlstrand opened 1 week ago

svendahlstrand commented 1 week ago

David says:

Has anyone reported that with iOS 18 the Search Space plugin seems to just lock up Safari? I've tried disabling my browser extensions to make sure nothing is interfering but still get the same result. The whole browser freezes.

And I can reproduce this on my own device. My hunch is that it has to do with the autocomplete feature.

svendahlstrand commented 1 week ago

My hunch turned out correct. The release notes for Safari 18 mentions:

Fixed displayed datalist dropdown to sync its options elements after a DOM update.

It's great that they fixed a bug, but it also makes Safari 18 on iOS waaaaay slower when there are many options, compared to Safari 17 and earlier. So this is not a bug in Search Space, but a performance problem introduced by Safari 18. I will work around it, though, by limiting the autocomplete options.

svendahlstrand commented 1 week ago

I've pushed a workaround for this but will keep the issue open for a while to investigate further and maybe file a report with Apple and/or the WebKit team.