U need disallow useless requests, for example .png .mp4,mb some .js / .css e.t.c. and u need to test, that ur denied requests dont impact ur script normall work
use http client if you want speed . if browser is only solution then you need to disable everything you can ex . images, scripts and other blockable objects .