Fix video streaming
Many fixes for layout rendering.
Many optimizations to cut down on styling/rendering/painting time, to keep video streaming frame pacing right.
Compile large javascript files in a secondary thread.
Adding optional dependencies for video and audio decoding.
Tested with YouTube, Twitch and BitChute.
BTW, I set autoplay to be off. Otherwise the slow initial rendering of youtube completely screws up pacing of the video. Javascripts fault, I suppose.
YouTube streaming will stop at 40 something seconds due to BotGuard. They refuse to play more for unrecognized browsers. Or not.
Seems to be playing fine with latest upstream fixes. But audio is being cut off after a long time. Investigating. Seems to be them switching audio format/quality in-flight. Will try with different resolution too. Fixed.