Hey CusturA,
I’ve noticed you’re using an object element. I’ve found to embed a Twitch stream works best using an iframe element. It’ll cut down on your code substantially.
If you go to any Twitch stream, and share the stream you will find there a link to embed the stream using an iframe element. I suggest using that as a template and replace any attributes to preference.
Give it a shot and see if the lag goes away!
Kakeiso