I am a big fan of single header libraries. And libraries that i not just link to, but which i am allowed to reuse and compile myself. Then i gut that library and remove everything i don't need. Less code, less space, less runtime and less potential bugs hopefully.
For example there is a single header library HTML renderer and its fast, but does not run JavaScript.
And there is for example Chromium, which is the complete browser experience, but its 10GB source code, no sense in trying simplifying any of that.