Use SSH’s dynamic proxy mode (-D) so you have the full browser running locally and only the network traffic running over SSH.
This is enormously better for UI response time and things like compressed files: you only transfer the compressed text, image, audio, or video files rather than the decoded form which can be an order of magnitude larger.