Ideas for filtering trade and quotes based on conditions

I am creating a web application where I can view the trades and quotes for a ticker. Alpaca’s stream is too fast for my browser and my browser lags. I’ve already throttled trades under a certain trade size (e.g. ignore all trade size below 50). I’m specifically looking for ideas on how to “safely” filter trades and quotes based on tape conditions. “Safe” in that I’ don’t want to miss any pertinent data. I’m already ignoring late reported trades, condition “L” on all tapes based on this post. I’m curious as to how others many be handling such cases. Cheers!