Start a new topic
Solved

seems like cohost is guzzling my CPU after the modal update, at least on Safari

using the site on mac safari and ios safari is super laggy now, and peeking in activity monitor shows it's consuming 100%+ of CPU when i scroll. typing in any text field has like a quarter of a second of lag on both my phone and pc on multiple Pages and multiple pages. haven't noticed this before today. i turned off my userscripts/adblock and got the same behavior so i dont think that's it. can't check any other browsers right now though


image



9 people have this problem

Well i don't know if anything actually changed, but now it runs perfectly fine on both platforms. I could only max it out around 50% by scrolling like a maniac. ¯\_(ツ)_/¯

I'm having the same issue, actually, on both iOS and macOS.


Text entry is extremely laggy and hard to work with as a result.

Do any of you have Cohost plus? And did you when the bug occurred, or were you freeby users like I am?
Dang. After seeing another bug with the composer that the devs couldn't catch because they all had Cohost Plus (and it only effected non-Plus members), I was hoping this too would be related. I guess not. :x
not sure if related but firefox for android becomes extremely slow every time i scroll near an embed with the blur filter applied

my experience is:


iOS 16.7.1 on an iphone 11 (PWA): perfectly fine, only performance issue is things not showing how long they take to load

same iOS and iphone on regular safari: same as PWA except i have a loading bar so it loads as expected


ipadOS 17.1.1 on 4th gen ipad pro (regular safari): takes a couple seconds but it DOES start lagging heavily when typing stuff in a post modal

same ipadOS and ipad with PWA: same performance as the IPHONE PWA except, bizarrely, when trying to end a tag by using a comma it takes a second for it to register??


macOS 12.0.1 on M1 2020 macbook air, firefox: works like a breeze, even better than iphone

same macOS + mac on safari: worked fine for a few seconds until i resized the window and tabbed out and it started lagging so badly i quit out of fear it would brick my laptop


so.... no clue what the culprit is! i thought it was a more recent OS issue but my laptop is the furthest behind and worked the worst on safari.

Able to reproduce on macOS Safari 17.1 (19616.2.9.11.7) with these steps, after loading cohost.org:

- Open post composer modal

- Copy and paste "Velit veniam labore laboris commodo labore esse aliquip. Minim fugiat culpa laboris magna sunt non aute aliquip reprehenderit esse enim nulla quis. Ut pariatur esse ad exercitation deserunt adipisicing. Amet do consequat dolore. Culpa aliquip ullamco laboris cupidatat fugiat incididunt." in a new paragraph multiple times.


While the input lag is not noticeable at first, for me it starts to become an issue around ~5 copy/pastes, and seems to be related to layout invalidation and slow CSS repaints. The lag is present in both the composer and tag input.


I also found that disabling a particular input event listener on the composer's `<div data-headlessui-portal>` parent (see attached image) removes (most?) of the input lag within the composer itself, although the tag input is still affected.

Whoops, can't go back and edit my comment: I am running macOS Sonoma 14.1.1 (23B81).

Login or Signup to post a comment