1. I did not see any error in browser console.
2. I found there is a space missed in the optimized code.
The original code is as below: (please change the ‘ to backticks, I cannot put it here)
$(‘.act-container .proj-card[data-act_date!=${dateSelected}]’).hide();
After optimize, it became this:
$(‘.act-container.proj-card[data-act_date!=${dateSelected}]’).hide();
You can notice there is a space is missing.
3. I create a small piece of code in jsfiddle: https://jsfiddle.net/6jhcpeLL/