The issue seems to be that it removed a `!` from the line declaring $optimize_js, so now js is only optimized in maintenance mode. #3373328 was focused on the css aggregation, so its understandable that the missing exclamation point for js optimization would be overlooked.
Is there a d10 version of this patch? We'd been using !2980 on a D9 site and are trying to upgrade to D10. !204 looks like its set for D10.1, but for some reason that MR has over a thousand commits, most of which don't seem related.