Use umatrix in whitelist mode. By default, I only load first party html, images, and CSS.
uBlock Origin has kind-of-similar (but not quite) functionality where you can block by domains, but it is not as granular (it is called "Advanced" something IIRC).