My experience with Firefox got much faster after I installed a local DNSMasq server.
Things got noticeably faster after that point.
For details, see: https://news.ycombinator.com/item?id=21877330
This comment was when I first installed DNSMasq on a very low powered OrangePi Zero (512MB) on home network. I worked a lot of kinks and this situation holds truer when compared to that time.