It's only a tradeoff because for some reason we decided, collectively, that writing native apps is impossible.
Then HTML became that common subset of the UI and the browser JS runtime and rendering engine replaced the cross platform toolkit. Bloated, not optimized for space and time as it could be, etc, but very convenient.